@wistia/ui 0.4.11-beta.bab90df5.bc51d6d → 0.4.11
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 +226 -260
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +161 -195
- package/dist/index.mjs.map +1 -1
- package/package.json +27 -27
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.4.11
|
|
3
|
+
* @license @wistia/ui v0.4.11
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -6114,66 +6114,33 @@ BoxComponent.displayName = "Box";
|
|
|
6114
6114
|
var Box = makePolymorphic(BoxComponent);
|
|
6115
6115
|
|
|
6116
6116
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
6117
|
-
import { Children as Children2 } from "react";
|
|
6118
6117
|
import styled11 from "styled-components";
|
|
6119
|
-
import {
|
|
6118
|
+
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
6120
6119
|
var StyledBreadcrumbs = styled11.nav`
|
|
6121
6120
|
display: flex;
|
|
6122
6121
|
align-items: center;
|
|
6123
6122
|
gap: var(--wui-space-01);
|
|
6124
|
-
overflow: hidden;
|
|
6125
6123
|
|
|
6126
|
-
>
|
|
6124
|
+
> svg:last-of-type {
|
|
6127
6125
|
display: none;
|
|
6128
6126
|
}
|
|
6129
6127
|
`;
|
|
6130
|
-
var BUFFER_WIDTH = 10;
|
|
6131
6128
|
var Breadcrumbs = ({ children, ...props }) => {
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
[data-wui-breadcrumbs] {
|
|
6141
|
-
container-type: inline-size;
|
|
6142
|
-
container-name: breadcrumbs;
|
|
6143
|
-
}
|
|
6144
|
-
|
|
6145
|
-
@container breadcrumbs (width < 100vw) {
|
|
6146
|
-
[data-wui-breadcrumb] {
|
|
6147
|
-
max-width: ${crumbMaxWidth}cqw;
|
|
6148
|
-
}
|
|
6149
|
-
}
|
|
6150
|
-
` }),
|
|
6151
|
-
/* @__PURE__ */ jsx168(
|
|
6152
|
-
StyledBreadcrumbs,
|
|
6153
|
-
{
|
|
6154
|
-
"aria-label": "Breadcrumbs",
|
|
6155
|
-
"data-wui-breadcrumbs": true,
|
|
6156
|
-
...props,
|
|
6157
|
-
children: crumbs
|
|
6158
|
-
}
|
|
6159
|
-
)
|
|
6160
|
-
] });
|
|
6129
|
+
return /* @__PURE__ */ jsx168(
|
|
6130
|
+
StyledBreadcrumbs,
|
|
6131
|
+
{
|
|
6132
|
+
"aria-label": "Breadcrumbs",
|
|
6133
|
+
...props,
|
|
6134
|
+
children
|
|
6135
|
+
}
|
|
6136
|
+
);
|
|
6161
6137
|
};
|
|
6162
6138
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
6163
6139
|
|
|
6164
6140
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
6165
|
-
import
|
|
6166
|
-
import { Fragment as Fragment3, jsx as jsx169, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
6167
|
-
var BreadcrumbContent = styled12.span`
|
|
6168
|
-
overflow: hidden;
|
|
6169
|
-
white-space: nowrap;
|
|
6170
|
-
display: block;
|
|
6171
|
-
text-overflow: ellipsis;
|
|
6172
|
-
text-align: left;
|
|
6173
|
-
flex: 0;
|
|
6174
|
-
`;
|
|
6141
|
+
import { Fragment as Fragment2, jsx as jsx169, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
6175
6142
|
var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
6176
|
-
return /* @__PURE__ */
|
|
6143
|
+
return /* @__PURE__ */ jsxs9(Fragment2, { children: [
|
|
6177
6144
|
/* @__PURE__ */ jsx169(
|
|
6178
6145
|
Button,
|
|
6179
6146
|
{
|
|
@@ -6181,22 +6148,21 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
|
6181
6148
|
href,
|
|
6182
6149
|
leftIcon: icon,
|
|
6183
6150
|
variant: "ghost",
|
|
6184
|
-
children
|
|
6151
|
+
children
|
|
6185
6152
|
}
|
|
6186
6153
|
),
|
|
6187
|
-
/* @__PURE__ */ jsx169(
|
|
6154
|
+
/* @__PURE__ */ jsx169(
|
|
6188
6155
|
Icon,
|
|
6189
6156
|
{
|
|
6190
6157
|
size: "sm",
|
|
6191
|
-
style: { flex: "0 1 auto" },
|
|
6192
6158
|
type: "caret-right"
|
|
6193
6159
|
}
|
|
6194
|
-
)
|
|
6160
|
+
)
|
|
6195
6161
|
] });
|
|
6196
6162
|
};
|
|
6197
6163
|
|
|
6198
6164
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
6199
|
-
import
|
|
6165
|
+
import styled12 from "styled-components";
|
|
6200
6166
|
import { isNil as isNil8 } from "@wistia/type-guards";
|
|
6201
6167
|
import { jsx as jsx170 } from "react/jsx-runtime";
|
|
6202
6168
|
var getAlignment = (align) => {
|
|
@@ -6211,7 +6177,7 @@ var getAlignment = (align) => {
|
|
|
6211
6177
|
}
|
|
6212
6178
|
return "flex-start";
|
|
6213
6179
|
};
|
|
6214
|
-
var ButtonGroupComponent =
|
|
6180
|
+
var ButtonGroupComponent = styled12.div`
|
|
6215
6181
|
display: flex;
|
|
6216
6182
|
|
|
6217
6183
|
/* this helps ensure that primary buttons appear at the top of the column */
|
|
@@ -6253,9 +6219,9 @@ var ButtonGroup = ({
|
|
|
6253
6219
|
ButtonGroup.displayName = "ButtonGroup";
|
|
6254
6220
|
|
|
6255
6221
|
// src/components/Card/Card.tsx
|
|
6256
|
-
import
|
|
6222
|
+
import styled13 from "styled-components";
|
|
6257
6223
|
import { jsx as jsx171 } from "react/jsx-runtime";
|
|
6258
|
-
var StyledCard =
|
|
6224
|
+
var StyledCard = styled13(Box)`
|
|
6259
6225
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6260
6226
|
box-sizing: border-box;
|
|
6261
6227
|
padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
|
|
@@ -6306,15 +6272,15 @@ Card.displayName = "Card";
|
|
|
6306
6272
|
// src/components/Checkbox/Checkbox.tsx
|
|
6307
6273
|
import { forwardRef as forwardRef7, useId } from "react";
|
|
6308
6274
|
import { Root as CheckboxRoot, Indicator as CheckboxIndicator } from "@radix-ui/react-checkbox";
|
|
6309
|
-
import
|
|
6275
|
+
import styled17 from "styled-components";
|
|
6310
6276
|
import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
|
|
6311
6277
|
|
|
6312
6278
|
// src/components/Label/Label.tsx
|
|
6313
|
-
import
|
|
6279
|
+
import styled15, { css as css16 } from "styled-components";
|
|
6314
6280
|
|
|
6315
6281
|
// src/components/Heading/Heading.tsx
|
|
6316
6282
|
import { forwardRef as forwardRef6 } from "react";
|
|
6317
|
-
import
|
|
6283
|
+
import styled14, { css as css15 } from "styled-components";
|
|
6318
6284
|
import { jsx as jsx172 } from "react/jsx-runtime";
|
|
6319
6285
|
var heroStyle = css15`
|
|
6320
6286
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
@@ -6368,7 +6334,7 @@ var variantStyleMap = {
|
|
|
6368
6334
|
heading6: heading6TextStyle
|
|
6369
6335
|
};
|
|
6370
6336
|
var DEFAULT_ELEMENT2 = "h1";
|
|
6371
|
-
var StyledHeading =
|
|
6337
|
+
var StyledHeading = styled14.div`
|
|
6372
6338
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6373
6339
|
font-family: var(--font-family);
|
|
6374
6340
|
font-size: var(--font-size);
|
|
@@ -6443,7 +6409,7 @@ var requiredStyle = css16`
|
|
|
6443
6409
|
var disabledStyle = css16`
|
|
6444
6410
|
color: var(--wui-color-text-disabled);
|
|
6445
6411
|
`;
|
|
6446
|
-
var StyledLabel2 =
|
|
6412
|
+
var StyledLabel2 = styled15(Heading).attrs({
|
|
6447
6413
|
variant: "heading6",
|
|
6448
6414
|
renderAs: "label"
|
|
6449
6415
|
})`
|
|
@@ -6486,10 +6452,10 @@ var Label = ({
|
|
|
6486
6452
|
Label.displayName = "Label";
|
|
6487
6453
|
|
|
6488
6454
|
// src/components/Label/LabelDescription.tsx
|
|
6489
|
-
import
|
|
6455
|
+
import styled16 from "styled-components";
|
|
6490
6456
|
import { isNil as isNil9 } from "@wistia/type-guards";
|
|
6491
6457
|
import { jsx as jsx174 } from "react/jsx-runtime";
|
|
6492
|
-
var StyledLabelDescription =
|
|
6458
|
+
var StyledLabelDescription = styled16.div`
|
|
6493
6459
|
color: var(--wui-color-text-secondary);
|
|
6494
6460
|
font-size: var(--wui-typography-body-4-size);
|
|
6495
6461
|
font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -6507,7 +6473,7 @@ var LabelDescription = ({
|
|
|
6507
6473
|
LabelDescription.displayName = "LabelDescription";
|
|
6508
6474
|
|
|
6509
6475
|
// src/components/Checkbox/Checkbox.tsx
|
|
6510
|
-
import { jsx as jsx175, jsxs as
|
|
6476
|
+
import { jsx as jsx175, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
6511
6477
|
var CheckIcon = () => /* @__PURE__ */ jsx175(
|
|
6512
6478
|
"svg",
|
|
6513
6479
|
{
|
|
@@ -6525,7 +6491,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx175(
|
|
|
6525
6491
|
)
|
|
6526
6492
|
}
|
|
6527
6493
|
);
|
|
6528
|
-
var StyledCheckboxWrapper =
|
|
6494
|
+
var StyledCheckboxWrapper = styled17.div`
|
|
6529
6495
|
display: flex;
|
|
6530
6496
|
align-items: center;
|
|
6531
6497
|
cursor: pointer;
|
|
@@ -6539,7 +6505,7 @@ var StyledCheckboxWrapper = styled18.div`
|
|
|
6539
6505
|
background-color: #efefef;
|
|
6540
6506
|
}
|
|
6541
6507
|
`;
|
|
6542
|
-
var StyledCheckboxRoot =
|
|
6508
|
+
var StyledCheckboxRoot = styled17(CheckboxRoot)`
|
|
6543
6509
|
all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
|
|
6544
6510
|
background-color: var(--wui-color-bg-fill-white);
|
|
6545
6511
|
min-width: 16px;
|
|
@@ -6573,10 +6539,10 @@ var StyledCheckboxRoot = styled18(CheckboxRoot)`
|
|
|
6573
6539
|
/* TODO Lamp to design focus state */
|
|
6574
6540
|
}
|
|
6575
6541
|
`;
|
|
6576
|
-
var StyledCheckboxIndicator =
|
|
6542
|
+
var StyledCheckboxIndicator = styled17(CheckboxIndicator)`
|
|
6577
6543
|
display: flex;
|
|
6578
6544
|
`;
|
|
6579
|
-
var StyledLabelWrapper =
|
|
6545
|
+
var StyledLabelWrapper = styled17.div`
|
|
6580
6546
|
display: flex;
|
|
6581
6547
|
flex-direction: column;
|
|
6582
6548
|
margin-left: var(--wui-space-02);
|
|
@@ -6597,7 +6563,7 @@ var Checkbox = forwardRef7(
|
|
|
6597
6563
|
}, ref) => {
|
|
6598
6564
|
const generatedId = useId();
|
|
6599
6565
|
const computedId = isNonEmptyString2(id) ? id : `wistia-ui-checkbox-group-${generatedId}`;
|
|
6600
|
-
return /* @__PURE__ */
|
|
6566
|
+
return /* @__PURE__ */ jsxs10(StyledCheckboxWrapper, { children: [
|
|
6601
6567
|
/* @__PURE__ */ jsx175(
|
|
6602
6568
|
StyledCheckboxRoot,
|
|
6603
6569
|
{
|
|
@@ -6626,7 +6592,7 @@ var Checkbox = forwardRef7(
|
|
|
6626
6592
|
children: /* @__PURE__ */ jsx175(StyledCheckboxIndicator, { children: /* @__PURE__ */ jsx175(CheckIcon, {}) })
|
|
6627
6593
|
}
|
|
6628
6594
|
),
|
|
6629
|
-
/* @__PURE__ */
|
|
6595
|
+
/* @__PURE__ */ jsxs10(StyledLabelWrapper, { children: [
|
|
6630
6596
|
/* @__PURE__ */ jsx175(
|
|
6631
6597
|
Label,
|
|
6632
6598
|
{
|
|
@@ -6644,7 +6610,7 @@ var Checkbox = forwardRef7(
|
|
|
6644
6610
|
Checkbox.displayName = "Checkbox";
|
|
6645
6611
|
|
|
6646
6612
|
// src/components/Divider/Divider.tsx
|
|
6647
|
-
import
|
|
6613
|
+
import styled18, { css as css17 } from "styled-components";
|
|
6648
6614
|
import { jsx as jsx176 } from "react/jsx-runtime";
|
|
6649
6615
|
var horizontalBorderCss = css17`
|
|
6650
6616
|
border-top-color: var(--wui-color-border);
|
|
@@ -6659,7 +6625,7 @@ var verticalBorderCss = css17`
|
|
|
6659
6625
|
min-height: 100%;
|
|
6660
6626
|
width: 1px;
|
|
6661
6627
|
`;
|
|
6662
|
-
var DividerComponent =
|
|
6628
|
+
var DividerComponent = styled18.div`
|
|
6663
6629
|
${({ $orientation }) => {
|
|
6664
6630
|
switch ($orientation) {
|
|
6665
6631
|
case "vertical":
|
|
@@ -6688,15 +6654,15 @@ Divider.displayName = "Divider";
|
|
|
6688
6654
|
|
|
6689
6655
|
// src/components/Form/Form.tsx
|
|
6690
6656
|
import { forwardRef as forwardRef9, useRef as useRef3, useMemo as useMemo4, createContext as createContext2, useState as useState5, useId as useId2 } from "react";
|
|
6691
|
-
import
|
|
6657
|
+
import styled20 from "styled-components";
|
|
6692
6658
|
import { isNotUndefined as isNotUndefined4, isUndefined as isUndefined3 } from "@wistia/type-guards";
|
|
6693
6659
|
|
|
6694
6660
|
// src/components/Stack/Stack.tsx
|
|
6695
6661
|
import { forwardRef as forwardRef8 } from "react";
|
|
6696
|
-
import
|
|
6662
|
+
import styled19 from "styled-components";
|
|
6697
6663
|
import { jsx as jsx177 } from "react/jsx-runtime";
|
|
6698
6664
|
var DEFAULT_ELEMENT3 = "div";
|
|
6699
|
-
var StyledStack =
|
|
6665
|
+
var StyledStack = styled19.div`
|
|
6700
6666
|
display: flex;
|
|
6701
6667
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
6702
6668
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -6722,7 +6688,7 @@ var Stack = makePolymorphic(StackComponent);
|
|
|
6722
6688
|
|
|
6723
6689
|
// src/components/Form/Form.tsx
|
|
6724
6690
|
import { jsx as jsx178 } from "react/jsx-runtime";
|
|
6725
|
-
var StyledForm =
|
|
6691
|
+
var StyledForm = styled20.form`
|
|
6726
6692
|
--form-default-width: 690px;
|
|
6727
6693
|
|
|
6728
6694
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
@@ -6850,7 +6816,7 @@ var useFormState = (action, initialData = {}) => {
|
|
|
6850
6816
|
// src/components/Form/FormErrorSummary.tsx
|
|
6851
6817
|
import { useContext as useContext2, useRef as useRef4 } from "react";
|
|
6852
6818
|
import { isArray, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
|
|
6853
|
-
import { jsx as jsx179, jsxs as
|
|
6819
|
+
import { jsx as jsx179, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
6854
6820
|
var ErrorItem = ({ name, error, formId }) => {
|
|
6855
6821
|
return /* @__PURE__ */ jsx179("li", { children: /* @__PURE__ */ jsx179(Link, { href: `${formId}-${name}`, children: error }) }, name);
|
|
6856
6822
|
};
|
|
@@ -6861,7 +6827,7 @@ var FormErrorSummary = ({ description }) => {
|
|
|
6861
6827
|
if (isValid || !hasSubmitted) {
|
|
6862
6828
|
return null;
|
|
6863
6829
|
}
|
|
6864
|
-
return /* @__PURE__ */
|
|
6830
|
+
return /* @__PURE__ */ jsxs11("div", { ref, children: [
|
|
6865
6831
|
/* @__PURE__ */ jsx179("p", { children: description }),
|
|
6866
6832
|
/* @__PURE__ */ jsx179("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined5(error)).map(
|
|
6867
6833
|
([name, error]) => isArray(error) ? error.map((err) => /* @__PURE__ */ jsx179(
|
|
@@ -6886,13 +6852,13 @@ var FormErrorSummary = ({ description }) => {
|
|
|
6886
6852
|
};
|
|
6887
6853
|
|
|
6888
6854
|
// src/components/FormField/FormField.tsx
|
|
6889
|
-
import { Children as
|
|
6890
|
-
import
|
|
6855
|
+
import { Children as Children2, cloneElement as cloneElement3, useContext as useContext3 } from "react";
|
|
6856
|
+
import styled23 from "styled-components";
|
|
6891
6857
|
import { isArray as isArray2, isNotNil as isNotNil8, isNotUndefined as isNotUndefined6, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
6892
6858
|
|
|
6893
6859
|
// src/components/Text/Text.tsx
|
|
6894
6860
|
import { forwardRef as forwardRef10 } from "react";
|
|
6895
|
-
import
|
|
6861
|
+
import styled21, { css as css18 } from "styled-components";
|
|
6896
6862
|
import { jsx as jsx180 } from "react/jsx-runtime";
|
|
6897
6863
|
var bodyBoldStyles = css18`
|
|
6898
6864
|
> strong,
|
|
@@ -6992,7 +6958,7 @@ var variantStyleMap2 = {
|
|
|
6992
6958
|
label3: label3TextStyle,
|
|
6993
6959
|
label4: label4TextStyle
|
|
6994
6960
|
};
|
|
6995
|
-
var StyledText =
|
|
6961
|
+
var StyledText = styled21.div`
|
|
6996
6962
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6997
6963
|
--text-color: ${({ $prominence, $disabled }) => {
|
|
6998
6964
|
if ($disabled) {
|
|
@@ -7071,18 +7037,18 @@ var Text = makePolymorphic(TextComponent);
|
|
|
7071
7037
|
import { createContext as createContext3, useMemo as useMemo5 } from "react";
|
|
7072
7038
|
|
|
7073
7039
|
// src/components/FormGroup/FormGroup.tsx
|
|
7074
|
-
import
|
|
7040
|
+
import styled22 from "styled-components";
|
|
7075
7041
|
import { useRef as useRef5 } from "react";
|
|
7076
|
-
import { jsx as jsx181, jsxs as
|
|
7077
|
-
var StyledFieldset =
|
|
7042
|
+
import { jsx as jsx181, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
7043
|
+
var StyledFieldset = styled22.fieldset`
|
|
7078
7044
|
border: 0;
|
|
7079
7045
|
`;
|
|
7080
|
-
var StyledLegend =
|
|
7046
|
+
var StyledLegend = styled22.legend`
|
|
7081
7047
|
margin-bottom: var(--space-01);
|
|
7082
7048
|
`;
|
|
7083
7049
|
var FormGroup = ({ children, label, ...props }) => {
|
|
7084
7050
|
const ref = useRef5();
|
|
7085
|
-
return /* @__PURE__ */
|
|
7051
|
+
return /* @__PURE__ */ jsxs12(
|
|
7086
7052
|
Stack,
|
|
7087
7053
|
{
|
|
7088
7054
|
...props,
|
|
@@ -7125,8 +7091,8 @@ var CheckboxGroup = ({
|
|
|
7125
7091
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
7126
7092
|
|
|
7127
7093
|
// src/components/FormField/FormField.tsx
|
|
7128
|
-
import { jsx as jsx183, jsxs as
|
|
7129
|
-
var StyledFormField =
|
|
7094
|
+
import { jsx as jsx183, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
7095
|
+
var StyledFormField = styled23.div`
|
|
7130
7096
|
--form-field-spacing: var(--wui-space-01);
|
|
7131
7097
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
7132
7098
|
|
|
@@ -7134,7 +7100,7 @@ var StyledFormField = styled24.div`
|
|
|
7134
7100
|
flex-direction: column;
|
|
7135
7101
|
gap: var(--form-field-spacing);
|
|
7136
7102
|
`;
|
|
7137
|
-
var StyledErrorList =
|
|
7103
|
+
var StyledErrorList = styled23.ul`
|
|
7138
7104
|
margin: 0;
|
|
7139
7105
|
padding: 0;
|
|
7140
7106
|
padding-left: var(--wui-space-04);
|
|
@@ -7210,8 +7176,8 @@ var FormField = ({
|
|
|
7210
7176
|
"aria-describedby": isNotNil8(error) ? `${id}-error` : void 0
|
|
7211
7177
|
};
|
|
7212
7178
|
}
|
|
7213
|
-
|
|
7214
|
-
return /* @__PURE__ */
|
|
7179
|
+
Children2.only(children);
|
|
7180
|
+
return /* @__PURE__ */ jsxs13(StyledFormField, { ...props, children: [
|
|
7215
7181
|
!isInlineLabel && /* @__PURE__ */ jsx183(Label, { htmlFor: id, children: label }),
|
|
7216
7182
|
cloneElement3(children, childProps),
|
|
7217
7183
|
isNotNil8(computedError) ? /* @__PURE__ */ jsx183(
|
|
@@ -7247,10 +7213,10 @@ var RadioGroup = ({
|
|
|
7247
7213
|
RadioGroup.displayName = "RadioGroup";
|
|
7248
7214
|
|
|
7249
7215
|
// src/components/IconButton/IconButton.tsx
|
|
7250
|
-
import { Children as
|
|
7251
|
-
import
|
|
7216
|
+
import { Children as Children3, cloneElement as cloneElement4, forwardRef as forwardRef11 } from "react";
|
|
7217
|
+
import styled24 from "styled-components";
|
|
7252
7218
|
import { jsx as jsx185 } from "react/jsx-runtime";
|
|
7253
|
-
var StyledButton2 =
|
|
7219
|
+
var StyledButton2 = styled24(Button)`
|
|
7254
7220
|
--icon-button-size-sm: 24px;
|
|
7255
7221
|
--icon-button-size-md: 32px;
|
|
7256
7222
|
--icon-button-size-lg: 40px;
|
|
@@ -7275,7 +7241,7 @@ var IconButton = forwardRef11(
|
|
|
7275
7241
|
"aria-label": label,
|
|
7276
7242
|
"data-wistia-ui-icon-button": true,
|
|
7277
7243
|
size: responsiveSize,
|
|
7278
|
-
children: cloneElement4(
|
|
7244
|
+
children: cloneElement4(Children3.only(children), {
|
|
7279
7245
|
size: responsiveSize
|
|
7280
7246
|
})
|
|
7281
7247
|
}
|
|
@@ -7286,9 +7252,9 @@ IconButton.displayName = "IconButton";
|
|
|
7286
7252
|
|
|
7287
7253
|
// src/components/Input/Input.tsx
|
|
7288
7254
|
import { forwardRef as forwardRef12, cloneElement as cloneElement5, useRef as useRef6 } from "react";
|
|
7289
|
-
import
|
|
7255
|
+
import styled25, { css as css19 } from "styled-components";
|
|
7290
7256
|
import { isNil as isNil10, isNotNil as isNotNil9 } from "@wistia/type-guards";
|
|
7291
|
-
import { jsx as jsx186, jsxs as
|
|
7257
|
+
import { jsx as jsx186, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
7292
7258
|
var inputStyles = css19`
|
|
7293
7259
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
7294
7260
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -7330,7 +7296,7 @@ var inputStyles = css19`
|
|
|
7330
7296
|
}
|
|
7331
7297
|
}
|
|
7332
7298
|
`;
|
|
7333
|
-
var StyledInputContainer =
|
|
7299
|
+
var StyledInputContainer = styled25.div`
|
|
7334
7300
|
display: inline-flex;
|
|
7335
7301
|
position: relative;
|
|
7336
7302
|
${inputStyles};
|
|
@@ -7416,7 +7382,7 @@ var Input = forwardRef12(
|
|
|
7416
7382
|
});
|
|
7417
7383
|
}
|
|
7418
7384
|
};
|
|
7419
|
-
return /* @__PURE__ */
|
|
7385
|
+
return /* @__PURE__ */ jsxs14(
|
|
7420
7386
|
StyledInputContainer,
|
|
7421
7387
|
{
|
|
7422
7388
|
$fullWidth: fullWidth,
|
|
@@ -7448,7 +7414,7 @@ var Input = forwardRef12(
|
|
|
7448
7414
|
Input.displayName = "Input";
|
|
7449
7415
|
|
|
7450
7416
|
// src/components/Menu/Menu.tsx
|
|
7451
|
-
import
|
|
7417
|
+
import styled26, { css as css20, keyframes } from "styled-components";
|
|
7452
7418
|
import {
|
|
7453
7419
|
DropdownMenu,
|
|
7454
7420
|
DropdownMenuTrigger,
|
|
@@ -7464,7 +7430,7 @@ var MenuContext = createContext5({ compact: false });
|
|
|
7464
7430
|
var useMenuContext = () => useContext4(MenuContext);
|
|
7465
7431
|
|
|
7466
7432
|
// src/components/Menu/Menu.tsx
|
|
7467
|
-
import { jsx as jsx187, jsxs as
|
|
7433
|
+
import { jsx as jsx187, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
7468
7434
|
var open = keyframes`
|
|
7469
7435
|
from {
|
|
7470
7436
|
opacity: 0;
|
|
@@ -7548,7 +7514,7 @@ var menuContentCss = css20`
|
|
|
7548
7514
|
margin: var(--menu-divider-margin) 0;
|
|
7549
7515
|
}
|
|
7550
7516
|
`;
|
|
7551
|
-
var MenuContent =
|
|
7517
|
+
var MenuContent = styled26(DropdownMenuContent)`
|
|
7552
7518
|
${menuContentCss}
|
|
7553
7519
|
`;
|
|
7554
7520
|
var Menu = ({
|
|
@@ -7574,7 +7540,7 @@ var Menu = ({
|
|
|
7574
7540
|
onOpenChange: () => null
|
|
7575
7541
|
};
|
|
7576
7542
|
}
|
|
7577
|
-
return /* @__PURE__ */ jsx187(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */
|
|
7543
|
+
return /* @__PURE__ */ jsx187(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs15(
|
|
7578
7544
|
DropdownMenu,
|
|
7579
7545
|
{
|
|
7580
7546
|
modal: false,
|
|
@@ -7611,10 +7577,10 @@ var Menu = ({
|
|
|
7611
7577
|
Menu.displayName = "Menu";
|
|
7612
7578
|
|
|
7613
7579
|
// src/components/Menu/MenuLabel.tsx
|
|
7614
|
-
import
|
|
7580
|
+
import styled27 from "styled-components";
|
|
7615
7581
|
import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
|
|
7616
7582
|
import { jsx as jsx188 } from "react/jsx-runtime";
|
|
7617
|
-
var StyledMenuLabel =
|
|
7583
|
+
var StyledMenuLabel = styled27(DropdownMenuLabel)`
|
|
7618
7584
|
padding: var(--wui-space-02);
|
|
7619
7585
|
`;
|
|
7620
7586
|
var MenuLabel = ({ children, ...props }) => {
|
|
@@ -7639,7 +7605,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
7639
7605
|
|
|
7640
7606
|
// src/components/Menu/SubMenu.tsx
|
|
7641
7607
|
import { useState as useState7 } from "react";
|
|
7642
|
-
import
|
|
7608
|
+
import styled30 from "styled-components";
|
|
7643
7609
|
import {
|
|
7644
7610
|
DropdownMenuPortal as DropdownMenuPortal2,
|
|
7645
7611
|
DropdownMenuSub,
|
|
@@ -7652,10 +7618,10 @@ import { isNotNil as isNotNil12 } from "@wistia/type-guards";
|
|
|
7652
7618
|
|
|
7653
7619
|
// src/components/Menu/MenuItemButton.tsx
|
|
7654
7620
|
import { forwardRef as forwardRef13 } from "react";
|
|
7655
|
-
import
|
|
7621
|
+
import styled28 from "styled-components";
|
|
7656
7622
|
import { isNotNil as isNotNil11, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
|
|
7657
|
-
import { jsx as jsx189, jsxs as
|
|
7658
|
-
var StyledButton3 =
|
|
7623
|
+
import { jsx as jsx189, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
7624
|
+
var StyledButton3 = styled28(Button)`
|
|
7659
7625
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
7660
7626
|
|
|
7661
7627
|
display: flex;
|
|
@@ -7693,7 +7659,7 @@ var StyledButton3 = styled29(Button)`
|
|
|
7693
7659
|
padding-left: var(--wui-space-04);
|
|
7694
7660
|
}
|
|
7695
7661
|
`;
|
|
7696
|
-
var StyledLeftIconContainer =
|
|
7662
|
+
var StyledLeftIconContainer = styled28.div`
|
|
7697
7663
|
height: var(--menu-item-left-icon-size);
|
|
7698
7664
|
width: var(--menu-item-left-icon-size);
|
|
7699
7665
|
|
|
@@ -7702,7 +7668,7 @@ var StyledLeftIconContainer = styled29.div`
|
|
|
7702
7668
|
width: var(--menu-item-left-icon-size);
|
|
7703
7669
|
}
|
|
7704
7670
|
`;
|
|
7705
|
-
var StyledRightIconContainer =
|
|
7671
|
+
var StyledRightIconContainer = styled28.div`
|
|
7706
7672
|
height: var(--menu-item-right-icon-size);
|
|
7707
7673
|
width: var(--menu-item-right-icon-size);
|
|
7708
7674
|
|
|
@@ -7711,13 +7677,13 @@ var StyledRightIconContainer = styled29.div`
|
|
|
7711
7677
|
width: var(--menu-item-right-icon-size);
|
|
7712
7678
|
}
|
|
7713
7679
|
`;
|
|
7714
|
-
var StyledLabelAndDescriptionContainer =
|
|
7680
|
+
var StyledLabelAndDescriptionContainer = styled28.div`
|
|
7715
7681
|
display: flex;
|
|
7716
7682
|
flex-direction: column;
|
|
7717
7683
|
gap: var(--menu-label-description-gap);
|
|
7718
7684
|
flex-basis: 100%;
|
|
7719
7685
|
`;
|
|
7720
|
-
var StyledBadgeContainer =
|
|
7686
|
+
var StyledBadgeContainer = styled28.div`
|
|
7721
7687
|
align-self: start;
|
|
7722
7688
|
justify-self: end;
|
|
7723
7689
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -7744,7 +7710,7 @@ var MenuItemButton = forwardRef13(({ children, appearance, command, icon, ...pro
|
|
|
7744
7710
|
}
|
|
7745
7711
|
);
|
|
7746
7712
|
}
|
|
7747
|
-
return /* @__PURE__ */
|
|
7713
|
+
return /* @__PURE__ */ jsxs16(
|
|
7748
7714
|
StyledButton3,
|
|
7749
7715
|
{
|
|
7750
7716
|
...props,
|
|
@@ -7765,10 +7731,10 @@ var MenuItemButton = forwardRef13(({ children, appearance, command, icon, ...pro
|
|
|
7765
7731
|
MenuItemButton.displayName = "MenuItemButton";
|
|
7766
7732
|
|
|
7767
7733
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
7768
|
-
import
|
|
7734
|
+
import styled29 from "styled-components";
|
|
7769
7735
|
import { jsx as jsx190 } from "react/jsx-runtime";
|
|
7770
|
-
var StyledMenuItemLabel =
|
|
7771
|
-
var StyledMenuItemDescription =
|
|
7736
|
+
var StyledMenuItemLabel = styled29.span``;
|
|
7737
|
+
var StyledMenuItemDescription = styled29(Text).attrs({
|
|
7772
7738
|
variant: "body4",
|
|
7773
7739
|
prominence: "secondary"
|
|
7774
7740
|
})``;
|
|
@@ -7780,18 +7746,18 @@ var MenuItemDescription = ({ children }) => {
|
|
|
7780
7746
|
};
|
|
7781
7747
|
|
|
7782
7748
|
// src/components/Menu/SubMenu.tsx
|
|
7783
|
-
import { jsx as jsx191, jsxs as
|
|
7784
|
-
var SubMenuContent =
|
|
7749
|
+
import { jsx as jsx191, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
7750
|
+
var SubMenuContent = styled30(DropdownMenuSubContent)`
|
|
7785
7751
|
${menuContentCss}
|
|
7786
7752
|
|
|
7787
7753
|
${mq.smAndDown} {
|
|
7788
7754
|
transform: translateX(-100%) !important;
|
|
7789
7755
|
}
|
|
7790
7756
|
`;
|
|
7791
|
-
var StyledMobileSubMenuItems =
|
|
7757
|
+
var StyledMobileSubMenuItems = styled30.div`
|
|
7792
7758
|
margin-left: var(--wui-space-04);
|
|
7793
7759
|
`;
|
|
7794
|
-
var StyledSubTrigger =
|
|
7760
|
+
var StyledSubTrigger = styled30(DropdownMenuSubTrigger)`
|
|
7795
7761
|
outline: none;
|
|
7796
7762
|
|
|
7797
7763
|
&[data-state='open'],
|
|
@@ -7820,14 +7786,14 @@ var SubMenu = ({
|
|
|
7820
7786
|
const { isSmAndUp } = useMq();
|
|
7821
7787
|
const [isExpanded, setIsExpanded] = useState7(false);
|
|
7822
7788
|
const { compact } = useMenuContext();
|
|
7823
|
-
return isSmAndUp ? /* @__PURE__ */
|
|
7824
|
-
/* @__PURE__ */
|
|
7789
|
+
return isSmAndUp ? /* @__PURE__ */ jsxs17(DropdownMenuSub, { onOpenChange, children: [
|
|
7790
|
+
/* @__PURE__ */ jsxs17(SubMenuTrigger, { ...props, children: [
|
|
7825
7791
|
/* @__PURE__ */ jsx191(MenuItemLabel, { children: label }),
|
|
7826
7792
|
isNotNil12(description) ? /* @__PURE__ */ jsx191(MenuItemDescription, { children: description }) : null
|
|
7827
7793
|
] }),
|
|
7828
7794
|
/* @__PURE__ */ jsx191(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx191(SubMenuContent, { $compact: compact, children }) })
|
|
7829
|
-
] }) : /* @__PURE__ */
|
|
7830
|
-
/* @__PURE__ */
|
|
7795
|
+
] }) : /* @__PURE__ */ jsxs17(DropdownMenuGroup, { children: [
|
|
7796
|
+
/* @__PURE__ */ jsxs17(
|
|
7831
7797
|
SubMenuTrigger,
|
|
7832
7798
|
{
|
|
7833
7799
|
...props,
|
|
@@ -7875,9 +7841,9 @@ MenuItem.displayName = "MenuItem";
|
|
|
7875
7841
|
import {
|
|
7876
7842
|
DropdownMenuRadioGroup
|
|
7877
7843
|
} from "@radix-ui/react-dropdown-menu";
|
|
7878
|
-
import { jsx as jsx193, jsxs as
|
|
7844
|
+
import { jsx as jsx193, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
7879
7845
|
var MenuRadioGroup = ({ children, label, ...props }) => {
|
|
7880
|
-
return /* @__PURE__ */
|
|
7846
|
+
return /* @__PURE__ */ jsxs18(DropdownMenuRadioGroup, { ...props, children: [
|
|
7881
7847
|
/* @__PURE__ */ jsx193(MenuLabel, { children: label }),
|
|
7882
7848
|
children
|
|
7883
7849
|
] });
|
|
@@ -7925,9 +7891,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
|
|
|
7925
7891
|
import {
|
|
7926
7892
|
DropdownMenuCheckboxItem
|
|
7927
7893
|
} from "@radix-ui/react-dropdown-menu";
|
|
7928
|
-
import { jsx as jsx195, jsxs as
|
|
7894
|
+
import { jsx as jsx195, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
7929
7895
|
var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
7930
|
-
return checked ? /* @__PURE__ */
|
|
7896
|
+
return checked ? /* @__PURE__ */ jsxs19(
|
|
7931
7897
|
"svg",
|
|
7932
7898
|
{
|
|
7933
7899
|
...props,
|
|
@@ -7953,7 +7919,7 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
7953
7919
|
)
|
|
7954
7920
|
]
|
|
7955
7921
|
}
|
|
7956
|
-
) : /* @__PURE__ */
|
|
7922
|
+
) : /* @__PURE__ */ jsxs19(
|
|
7957
7923
|
"svg",
|
|
7958
7924
|
{
|
|
7959
7925
|
...props,
|
|
@@ -8008,19 +7974,19 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
8008
7974
|
|
|
8009
7975
|
// src/components/Modal/Modal.tsx
|
|
8010
7976
|
import { forwardRef as forwardRef17 } from "react";
|
|
8011
|
-
import
|
|
7977
|
+
import styled36 from "styled-components";
|
|
8012
7978
|
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
8013
7979
|
import { isNotNil as isNotNil15 } from "@wistia/type-guards";
|
|
8014
7980
|
|
|
8015
7981
|
// src/components/Modal/ModalHeader.tsx
|
|
8016
|
-
import
|
|
7982
|
+
import styled33 from "styled-components";
|
|
8017
7983
|
import { Title as DialogTitle } from "@radix-ui/react-dialog";
|
|
8018
7984
|
|
|
8019
7985
|
// src/components/Modal/ModalCloseButton.tsx
|
|
8020
|
-
import
|
|
7986
|
+
import styled31 from "styled-components";
|
|
8021
7987
|
import { Close as DialogClose } from "@radix-ui/react-dialog";
|
|
8022
7988
|
import { jsx as jsx196 } from "react/jsx-runtime";
|
|
8023
|
-
var CloseButton =
|
|
7989
|
+
var CloseButton = styled31(DialogClose)`
|
|
8024
7990
|
align-self: start;
|
|
8025
7991
|
`;
|
|
8026
7992
|
var ModalCloseButton = () => {
|
|
@@ -8036,11 +8002,11 @@ var ModalCloseButton = () => {
|
|
|
8036
8002
|
};
|
|
8037
8003
|
|
|
8038
8004
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
8039
|
-
import
|
|
8005
|
+
import styled32 from "styled-components";
|
|
8040
8006
|
import { isNotNil as isNotNil13 } from "@wistia/type-guards";
|
|
8041
8007
|
import { jsx as jsx197 } from "react/jsx-runtime";
|
|
8042
|
-
var VisuallyHidden =
|
|
8043
|
-
var VisuallyHiddenButFocusable =
|
|
8008
|
+
var VisuallyHidden = styled32.div({ ...visuallyHiddenStyle });
|
|
8009
|
+
var VisuallyHiddenButFocusable = styled32.div({
|
|
8044
8010
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
8045
8011
|
});
|
|
8046
8012
|
var ScreenReaderOnly = ({
|
|
@@ -8058,8 +8024,8 @@ var ScreenReaderOnly = ({
|
|
|
8058
8024
|
ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
8059
8025
|
|
|
8060
8026
|
// src/components/Modal/ModalHeader.tsx
|
|
8061
|
-
import { jsx as jsx198, jsxs as
|
|
8062
|
-
var Header =
|
|
8027
|
+
import { jsx as jsx198, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
8028
|
+
var Header = styled33.header`
|
|
8063
8029
|
display: flex;
|
|
8064
8030
|
order: 1;
|
|
8065
8031
|
gap: var(--wui-space-01);
|
|
@@ -8071,7 +8037,7 @@ var Header = styled34.header`
|
|
|
8071
8037
|
margin-top: 0;
|
|
8072
8038
|
}
|
|
8073
8039
|
`;
|
|
8074
|
-
var Title =
|
|
8040
|
+
var Title = styled33(DialogTitle)`
|
|
8075
8041
|
font-family: var(--wui-typography-heading-2-family);
|
|
8076
8042
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
8077
8043
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -8083,7 +8049,7 @@ var ModalHeader = ({
|
|
|
8083
8049
|
hideCloseButton
|
|
8084
8050
|
}) => {
|
|
8085
8051
|
const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
|
|
8086
|
-
return /* @__PURE__ */
|
|
8052
|
+
return /* @__PURE__ */ jsxs20(Header, { children: [
|
|
8087
8053
|
/* @__PURE__ */ jsx198(TitleWrapper, { children: title }),
|
|
8088
8054
|
hideCloseButton ? null : /* @__PURE__ */ jsx198(ModalCloseButton, {})
|
|
8089
8055
|
] });
|
|
@@ -8091,7 +8057,7 @@ var ModalHeader = ({
|
|
|
8091
8057
|
|
|
8092
8058
|
// src/components/Modal/ModalContent.tsx
|
|
8093
8059
|
import { forwardRef as forwardRef15 } from "react";
|
|
8094
|
-
import
|
|
8060
|
+
import styled34 from "styled-components";
|
|
8095
8061
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
8096
8062
|
|
|
8097
8063
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -8115,7 +8081,7 @@ var useFocusRestore = () => {
|
|
|
8115
8081
|
|
|
8116
8082
|
// src/components/Modal/ModalContent.tsx
|
|
8117
8083
|
import { jsx as jsx199 } from "react/jsx-runtime";
|
|
8118
|
-
var StyledModalContent =
|
|
8084
|
+
var StyledModalContent = styled34(DialogContent)`
|
|
8119
8085
|
background-color: var(--wui-color-bg-app);
|
|
8120
8086
|
box-sizing: border-box;
|
|
8121
8087
|
display: flex;
|
|
@@ -8174,7 +8140,7 @@ var ModalContent = forwardRef15(
|
|
|
8174
8140
|
|
|
8175
8141
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
8176
8142
|
import { forwardRef as forwardRef16 } from "react";
|
|
8177
|
-
import
|
|
8143
|
+
import styled35 from "styled-components";
|
|
8178
8144
|
import { jsx as jsx200 } from "react/jsx-runtime";
|
|
8179
8145
|
var backdropAnimationDuration = 150;
|
|
8180
8146
|
var alignVerticalMap = {
|
|
@@ -8188,7 +8154,7 @@ var alignHorizontalMap = {
|
|
|
8188
8154
|
center: "center",
|
|
8189
8155
|
right: "end"
|
|
8190
8156
|
};
|
|
8191
|
-
var BackdropComponent =
|
|
8157
|
+
var BackdropComponent = styled35.div`
|
|
8192
8158
|
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
8193
8159
|
animation-name: backdropShow;
|
|
8194
8160
|
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
@@ -8226,8 +8192,8 @@ var Backdrop = forwardRef16(
|
|
|
8226
8192
|
Backdrop.displayName = "Backdrop";
|
|
8227
8193
|
|
|
8228
8194
|
// src/components/Modal/Modal.tsx
|
|
8229
|
-
import { jsx as jsx201, jsxs as
|
|
8230
|
-
var ModalBody =
|
|
8195
|
+
import { jsx as jsx201, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
8196
|
+
var ModalBody = styled36.div`
|
|
8231
8197
|
flex-direction: column;
|
|
8232
8198
|
display: flex;
|
|
8233
8199
|
order: 2;
|
|
@@ -8254,9 +8220,9 @@ var Modal = forwardRef17(
|
|
|
8254
8220
|
}
|
|
8255
8221
|
},
|
|
8256
8222
|
open: isOpen,
|
|
8257
|
-
children: /* @__PURE__ */
|
|
8223
|
+
children: /* @__PURE__ */ jsxs21(DialogPortal, { children: [
|
|
8258
8224
|
/* @__PURE__ */ jsx201(Backdrop, {}),
|
|
8259
|
-
/* @__PURE__ */
|
|
8225
|
+
/* @__PURE__ */ jsxs21(
|
|
8260
8226
|
ModalContent,
|
|
8261
8227
|
{
|
|
8262
8228
|
ref,
|
|
@@ -8293,15 +8259,15 @@ Modal.displayName = "Modal";
|
|
|
8293
8259
|
|
|
8294
8260
|
// src/components/Radio/Radio.tsx
|
|
8295
8261
|
import { forwardRef as forwardRef18, useId as useId3 } from "react";
|
|
8296
|
-
import
|
|
8262
|
+
import styled37, { css as css21 } from "styled-components";
|
|
8297
8263
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
8298
|
-
import { jsx as jsx202, jsxs as
|
|
8299
|
-
var StyledLabelWrapper2 =
|
|
8264
|
+
import { jsx as jsx202, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
8265
|
+
var StyledLabelWrapper2 = styled37.div`
|
|
8300
8266
|
display: flex;
|
|
8301
8267
|
flex-direction: column;
|
|
8302
8268
|
padding-left: var(--wui-space-02);
|
|
8303
8269
|
`;
|
|
8304
|
-
var StyledRadio =
|
|
8270
|
+
var StyledRadio = styled37.input`
|
|
8305
8271
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
8306
8272
|
appearance: none;
|
|
8307
8273
|
margin: 0;
|
|
@@ -8343,7 +8309,7 @@ var defaultHoverStyle = css21`
|
|
|
8343
8309
|
/* TODO Lamp to design hover state */
|
|
8344
8310
|
cursor: pointer;
|
|
8345
8311
|
`;
|
|
8346
|
-
var StyledRadioWrapper =
|
|
8312
|
+
var StyledRadioWrapper = styled37.div`
|
|
8347
8313
|
align-items: baseline;
|
|
8348
8314
|
border: 1px solid transparent;
|
|
8349
8315
|
border-radius: 4px;
|
|
@@ -8381,7 +8347,7 @@ var Radio = forwardRef18(
|
|
|
8381
8347
|
}, ref) => {
|
|
8382
8348
|
const generatedId = useId3();
|
|
8383
8349
|
const computedId = isNonEmptyString3(id) ? id : `ui-radio-${generatedId}`;
|
|
8384
|
-
return /* @__PURE__ */
|
|
8350
|
+
return /* @__PURE__ */ jsxs22(
|
|
8385
8351
|
StyledRadioWrapper,
|
|
8386
8352
|
{
|
|
8387
8353
|
"aria-invalid": otherProps["aria-invalid"],
|
|
@@ -8402,7 +8368,7 @@ var Radio = forwardRef18(
|
|
|
8402
8368
|
...otherProps
|
|
8403
8369
|
}
|
|
8404
8370
|
),
|
|
8405
|
-
/* @__PURE__ */
|
|
8371
|
+
/* @__PURE__ */ jsxs22(StyledLabelWrapper2, { children: [
|
|
8406
8372
|
/* @__PURE__ */ jsx202(
|
|
8407
8373
|
Label,
|
|
8408
8374
|
{
|
|
@@ -8423,11 +8389,11 @@ Radio.displayName = "Radio";
|
|
|
8423
8389
|
|
|
8424
8390
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
8425
8391
|
import { forwardRef as forwardRef19 } from "react";
|
|
8426
|
-
import
|
|
8392
|
+
import styled38 from "styled-components";
|
|
8427
8393
|
import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
|
|
8428
8394
|
import { isNil as isNil11 } from "@wistia/type-guards";
|
|
8429
8395
|
import { jsx as jsx203 } from "react/jsx-runtime";
|
|
8430
|
-
var StyledSegmentedControl =
|
|
8396
|
+
var StyledSegmentedControl = styled38(ToggleGroupRoot)`
|
|
8431
8397
|
display: inline-flex;
|
|
8432
8398
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
8433
8399
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8468,11 +8434,11 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
8468
8434
|
|
|
8469
8435
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
8470
8436
|
import { forwardRef as forwardRef20 } from "react";
|
|
8471
|
-
import
|
|
8437
|
+
import styled39 from "styled-components";
|
|
8472
8438
|
import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
8473
8439
|
import { isNotNil as isNotNil16 } from "@wistia/type-guards";
|
|
8474
|
-
import { jsxs as
|
|
8475
|
-
var StyledSegmentedControlItem =
|
|
8440
|
+
import { jsxs as jsxs23 } from "react/jsx-runtime";
|
|
8441
|
+
var StyledSegmentedControlItem = styled39(ToggleGroupItem)`
|
|
8476
8442
|
all: unset; /* ToggleGroupItem is a button element */
|
|
8477
8443
|
align-items: center;
|
|
8478
8444
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8533,7 +8499,7 @@ var SegmentedControlItem = forwardRef20(
|
|
|
8533
8499
|
event.preventDefault();
|
|
8534
8500
|
}
|
|
8535
8501
|
};
|
|
8536
|
-
return /* @__PURE__ */
|
|
8502
|
+
return /* @__PURE__ */ jsxs23(
|
|
8537
8503
|
StyledSegmentedControlItem,
|
|
8538
8504
|
{
|
|
8539
8505
|
ref,
|
|
@@ -8554,10 +8520,10 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
|
8554
8520
|
|
|
8555
8521
|
// src/components/Tag/Tag.tsx
|
|
8556
8522
|
import { forwardRef as forwardRef21 } from "react";
|
|
8557
|
-
import
|
|
8523
|
+
import styled40 from "styled-components";
|
|
8558
8524
|
import { isNil as isNil12, isNotNil as isNotNil17, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
8559
|
-
import { Fragment as
|
|
8560
|
-
var TagLabel =
|
|
8525
|
+
import { Fragment as Fragment3, jsx as jsx204, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
8526
|
+
var TagLabel = styled40.a`
|
|
8561
8527
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8562
8528
|
font-size: var(--wui-typography-label-4-size);
|
|
8563
8529
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8585,14 +8551,14 @@ var TagLabel = styled41.a`
|
|
|
8585
8551
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8586
8552
|
}
|
|
8587
8553
|
`;
|
|
8588
|
-
var TagDivider =
|
|
8554
|
+
var TagDivider = styled40.div`
|
|
8589
8555
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8590
8556
|
border-left: 1px solid var(--wui-color-border);
|
|
8591
8557
|
display: flex;
|
|
8592
8558
|
height: 14px;
|
|
8593
8559
|
width: 1px;
|
|
8594
8560
|
`;
|
|
8595
|
-
var StyledRemoveButton =
|
|
8561
|
+
var StyledRemoveButton = styled40.button`
|
|
8596
8562
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8597
8563
|
all: unset;
|
|
8598
8564
|
cursor: pointer;
|
|
@@ -8620,7 +8586,7 @@ var StyledRemoveButton = styled41.button`
|
|
|
8620
8586
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8621
8587
|
}
|
|
8622
8588
|
`;
|
|
8623
|
-
var StyledTag =
|
|
8589
|
+
var StyledTag = styled40.div`
|
|
8624
8590
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8625
8591
|
align-items: center;
|
|
8626
8592
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -8637,9 +8603,9 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
8637
8603
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
8638
8604
|
);
|
|
8639
8605
|
}
|
|
8640
|
-
return /* @__PURE__ */
|
|
8606
|
+
return /* @__PURE__ */ jsxs24(Fragment3, { children: [
|
|
8641
8607
|
/* @__PURE__ */ jsx204(TagDivider, { $colorScheme: colorScheme }),
|
|
8642
|
-
/* @__PURE__ */
|
|
8608
|
+
/* @__PURE__ */ jsxs24(
|
|
8643
8609
|
StyledRemoveButton,
|
|
8644
8610
|
{
|
|
8645
8611
|
$colorScheme: colorScheme,
|
|
@@ -8662,7 +8628,7 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
8662
8628
|
var Tag = forwardRef21(
|
|
8663
8629
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
8664
8630
|
const labelProps = isNotNil17(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
|
|
8665
|
-
return /* @__PURE__ */
|
|
8631
|
+
return /* @__PURE__ */ jsxs24(
|
|
8666
8632
|
StyledTag,
|
|
8667
8633
|
{
|
|
8668
8634
|
ref,
|
|
@@ -8700,8 +8666,8 @@ import {
|
|
|
8700
8666
|
Portal,
|
|
8701
8667
|
Arrow
|
|
8702
8668
|
} from "@radix-ui/react-tooltip";
|
|
8703
|
-
import
|
|
8704
|
-
import { jsx as jsx205, jsxs as
|
|
8669
|
+
import styled41, { css as css22 } from "styled-components";
|
|
8670
|
+
import { jsx as jsx205, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
8705
8671
|
var CompactTooltipStyles = css22`
|
|
8706
8672
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8707
8673
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
@@ -8709,7 +8675,7 @@ var CompactTooltipStyles = css22`
|
|
|
8709
8675
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8710
8676
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8711
8677
|
`;
|
|
8712
|
-
var StyledContent =
|
|
8678
|
+
var StyledContent = styled41(Content)`
|
|
8713
8679
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8714
8680
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8715
8681
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -8767,14 +8733,14 @@ var Tooltip = ({
|
|
|
8767
8733
|
if (forceOpen === true) {
|
|
8768
8734
|
rootProps.open = true;
|
|
8769
8735
|
}
|
|
8770
|
-
return /* @__PURE__ */
|
|
8736
|
+
return /* @__PURE__ */ jsxs25(
|
|
8771
8737
|
Root,
|
|
8772
8738
|
{
|
|
8773
8739
|
delayDuration: delay,
|
|
8774
8740
|
...rootProps,
|
|
8775
8741
|
children: [
|
|
8776
8742
|
/* @__PURE__ */ jsx205(Trigger, { asChild: true, children }),
|
|
8777
|
-
/* @__PURE__ */ jsx205(Portal, { children: /* @__PURE__ */
|
|
8743
|
+
/* @__PURE__ */ jsx205(Portal, { children: /* @__PURE__ */ jsxs25(
|
|
8778
8744
|
StyledContent,
|
|
8779
8745
|
{
|
|
8780
8746
|
$compact: compact,
|
|
@@ -8804,9 +8770,9 @@ var Tooltip = ({
|
|
|
8804
8770
|
Tooltip.displayName = "Tooltip";
|
|
8805
8771
|
|
|
8806
8772
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
8807
|
-
import
|
|
8773
|
+
import styled42 from "styled-components";
|
|
8808
8774
|
import { isNotNil as isNotNil18 } from "@wistia/type-guards";
|
|
8809
|
-
import { jsx as jsx206, jsxs as
|
|
8775
|
+
import { jsx as jsx206, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
8810
8776
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
8811
8777
|
if (iconOnly) {
|
|
8812
8778
|
return /* @__PURE__ */ jsx206(
|
|
@@ -8846,7 +8812,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
8846
8812
|
}
|
|
8847
8813
|
return "0 0 144 31.47";
|
|
8848
8814
|
};
|
|
8849
|
-
var WistiaLogoComponent =
|
|
8815
|
+
var WistiaLogoComponent = styled42.svg`
|
|
8850
8816
|
height: ${({ height }) => `${height}px`};
|
|
8851
8817
|
|
|
8852
8818
|
/* ensure it will always fit on mobile */
|
|
@@ -8888,7 +8854,7 @@ var WistiaLogo = ({
|
|
|
8888
8854
|
};
|
|
8889
8855
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
8890
8856
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
8891
|
-
const Logo = /* @__PURE__ */
|
|
8857
|
+
const Logo = /* @__PURE__ */ jsxs26(
|
|
8892
8858
|
WistiaLogoComponent,
|
|
8893
8859
|
{
|
|
8894
8860
|
$hoverColor: hoverColor,
|
|
@@ -8921,9 +8887,9 @@ import {
|
|
|
8921
8887
|
ScrollDownButton
|
|
8922
8888
|
} from "@radix-ui/react-select";
|
|
8923
8889
|
import { forwardRef as forwardRef22 } from "react";
|
|
8924
|
-
import
|
|
8925
|
-
import { jsx as jsx207, jsxs as
|
|
8926
|
-
var StyledTrigger =
|
|
8890
|
+
import styled43 from "styled-components";
|
|
8891
|
+
import { jsx as jsx207, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
8892
|
+
var StyledTrigger = styled43(Trigger2)`
|
|
8927
8893
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8928
8894
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
8929
8895
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -8964,7 +8930,7 @@ var StyledTrigger = styled44(Trigger2)`
|
|
|
8964
8930
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
8965
8931
|
}
|
|
8966
8932
|
`;
|
|
8967
|
-
var StyledContent2 =
|
|
8933
|
+
var StyledContent2 = styled43(Content2)`
|
|
8968
8934
|
--wui-select-content-border: var(--wui-color-border);
|
|
8969
8935
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
8970
8936
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -8990,13 +8956,13 @@ var Select = forwardRef22(
|
|
|
8990
8956
|
...props
|
|
8991
8957
|
}, forwardedRef) => {
|
|
8992
8958
|
const responsiveFullWidth = useResponsiveProp(fullWidth);
|
|
8993
|
-
return /* @__PURE__ */
|
|
8959
|
+
return /* @__PURE__ */ jsxs27(
|
|
8994
8960
|
Root2,
|
|
8995
8961
|
{
|
|
8996
8962
|
...props,
|
|
8997
8963
|
onValueChange: onChange,
|
|
8998
8964
|
children: [
|
|
8999
|
-
/* @__PURE__ */
|
|
8965
|
+
/* @__PURE__ */ jsxs27(
|
|
9000
8966
|
StyledTrigger,
|
|
9001
8967
|
{
|
|
9002
8968
|
ref: forwardedRef,
|
|
@@ -9015,7 +8981,7 @@ var Select = forwardRef22(
|
|
|
9015
8981
|
]
|
|
9016
8982
|
}
|
|
9017
8983
|
),
|
|
9018
|
-
/* @__PURE__ */ jsx207(Portal2, { children: /* @__PURE__ */
|
|
8984
|
+
/* @__PURE__ */ jsx207(Portal2, { children: /* @__PURE__ */ jsxs27(StyledContent2, { position: "popper", children: [
|
|
9019
8985
|
/* @__PURE__ */ jsx207(ScrollUpButton, { children: /* @__PURE__ */ jsx207(Icon, { type: "caret-up" }) }),
|
|
9020
8986
|
/* @__PURE__ */ jsx207(Viewport, { children }),
|
|
9021
8987
|
/* @__PURE__ */ jsx207(ScrollDownButton, { children: /* @__PURE__ */ jsx207(Icon, { type: "caret-down" }) })
|
|
@@ -9030,9 +8996,9 @@ Select.displayName = "Select";
|
|
|
9030
8996
|
// src/components/Select/SelectOption.tsx
|
|
9031
8997
|
import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
9032
8998
|
import { forwardRef as forwardRef23 } from "react";
|
|
9033
|
-
import
|
|
9034
|
-
import { jsx as jsx208, jsxs as
|
|
9035
|
-
var StyledItem =
|
|
8999
|
+
import styled44 from "styled-components";
|
|
9000
|
+
import { jsx as jsx208, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
9001
|
+
var StyledItem = styled44(Item)`
|
|
9036
9002
|
${variantStyleMap2.body3};
|
|
9037
9003
|
display: flex;
|
|
9038
9004
|
padding: var(--wui-select-option-padding);
|
|
@@ -9055,12 +9021,12 @@ var StyledItem = styled45(Item)`
|
|
|
9055
9021
|
background-color: transparent;
|
|
9056
9022
|
}
|
|
9057
9023
|
`;
|
|
9058
|
-
var StyledIconContainer =
|
|
9024
|
+
var StyledIconContainer = styled44.span`
|
|
9059
9025
|
width: 12px;
|
|
9060
9026
|
`;
|
|
9061
9027
|
var SelectOption = forwardRef23(
|
|
9062
9028
|
({ children, ...props }, forwardedRef) => {
|
|
9063
|
-
return /* @__PURE__ */
|
|
9029
|
+
return /* @__PURE__ */ jsxs28(
|
|
9064
9030
|
StyledItem,
|
|
9065
9031
|
{
|
|
9066
9032
|
...props,
|
|
@@ -9083,13 +9049,13 @@ SelectOption.displayName = "Option";
|
|
|
9083
9049
|
|
|
9084
9050
|
// src/components/Select/SelectOptionGroup.tsx
|
|
9085
9051
|
import { Group, Label as Label2 } from "@radix-ui/react-select";
|
|
9086
|
-
import
|
|
9087
|
-
import { jsx as jsx209, jsxs as
|
|
9088
|
-
var StyledLabel3 =
|
|
9052
|
+
import styled45 from "styled-components";
|
|
9053
|
+
import { jsx as jsx209, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
9054
|
+
var StyledLabel3 = styled45(Label2)`
|
|
9089
9055
|
padding: var(--wui-select-option-padding);
|
|
9090
9056
|
`;
|
|
9091
9057
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
9092
|
-
return /* @__PURE__ */
|
|
9058
|
+
return /* @__PURE__ */ jsxs29(Group, { ...props, children: [
|
|
9093
9059
|
/* @__PURE__ */ jsx209(StyledLabel3, { children: /* @__PURE__ */ jsx209(
|
|
9094
9060
|
Text,
|
|
9095
9061
|
{
|