@wistia/ui 0.18.2-beta.e261b797.373c862 → 0.18.3-beta.20e95988.fbac8a8
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 +948 -875
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +789 -717
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.
|
|
3
|
+
* @license @wistia/ui v0.18.3-beta.20e95988.fbac8a8
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9183,11 +9183,90 @@ var Banner = ({
|
|
|
9183
9183
|
};
|
|
9184
9184
|
Banner.displayName = "Banner_UI";
|
|
9185
9185
|
|
|
9186
|
+
// src/components/Banner/BannerImage.tsx
|
|
9187
|
+
import { styled as styled17 } from "styled-components";
|
|
9188
|
+
import { jsx as jsx212 } from "react/jsx-runtime";
|
|
9189
|
+
var StyledBannerImageContainer = styled17.div`
|
|
9190
|
+
--wui-banner-image-border-radius: var(--wui-border-radius-02);
|
|
9191
|
+
--wui-banner-image-height: auto;
|
|
9192
|
+
--wui-banner-image-width: auto;
|
|
9193
|
+
|
|
9194
|
+
overflow: hidden;
|
|
9195
|
+
padding: var(--wui-space-04);
|
|
9196
|
+
height: var(--wui-banner-image-height);
|
|
9197
|
+
width: var(--wui-banner-image-width);
|
|
9198
|
+
justify-self: stretch;
|
|
9199
|
+
align-self: stretch;
|
|
9200
|
+
max-width: 300px;
|
|
9201
|
+
|
|
9202
|
+
/* Make image container stretch full width in vertical layout and remove bottom padding */
|
|
9203
|
+
[data-wui-banner-orientation='vertical'] & {
|
|
9204
|
+
max-width: none;
|
|
9205
|
+
width: 100%;
|
|
9206
|
+
padding-bottom: var(--wui-space-00);
|
|
9207
|
+
}
|
|
9208
|
+
|
|
9209
|
+
/* In horizontal layout, make image height equal to the content height and apply aspect ratio */
|
|
9210
|
+
[data-wui-banner-orientation='horizontal'] & {
|
|
9211
|
+
--wui-banner-image-height: calc(
|
|
9212
|
+
var(--wui-banner-content-height) + (var(--wui-banner-padding) * 2)
|
|
9213
|
+
);
|
|
9214
|
+
|
|
9215
|
+
/* Handle image alignment and remove padding next to content */
|
|
9216
|
+
&[data-wui-banner-image='right'] {
|
|
9217
|
+
padding-left: var(--wui-space-00);
|
|
9218
|
+
order: 2;
|
|
9219
|
+
}
|
|
9220
|
+
|
|
9221
|
+
&[data-wui-banner-image='left'] {
|
|
9222
|
+
padding-right: var(--wui-space-00);
|
|
9223
|
+
}
|
|
9224
|
+
}
|
|
9225
|
+
|
|
9226
|
+
/* Remove border radius and padding in small prominence horizontal layout */
|
|
9227
|
+
[data-wui-banner-content-prominence='small'] & {
|
|
9228
|
+
--wui-banner-image-border-radius: var(--wui-border-radius-00);
|
|
9229
|
+
|
|
9230
|
+
padding: var(--wui-space-00);
|
|
9231
|
+
}
|
|
9232
|
+
|
|
9233
|
+
/* Remove border radius in secondary prominence vertical layout */
|
|
9234
|
+
[data-wui-banner-orientation='vertical'] [data-wui-banner-content-prominence='secondary'] & {
|
|
9235
|
+
--wui-banner-image-border-radius: var(--wui-border-radius-00);
|
|
9236
|
+
}
|
|
9237
|
+
|
|
9238
|
+
[data-wui-banner-orientation='horizontal'][data-wui-banner-content-prominence='small'] & {
|
|
9239
|
+
flex: 0 0 25%;
|
|
9240
|
+
}
|
|
9241
|
+
|
|
9242
|
+
img {
|
|
9243
|
+
border-radius: var(--wui-banner-image-border-radius);
|
|
9244
|
+
}
|
|
9245
|
+
`;
|
|
9246
|
+
var BannerImage = ({ alignment = "left", alt, src, ...props }) => {
|
|
9247
|
+
return /* @__PURE__ */ jsx212(
|
|
9248
|
+
StyledBannerImageContainer,
|
|
9249
|
+
{
|
|
9250
|
+
"data-wui-banner-image": alignment,
|
|
9251
|
+
...props,
|
|
9252
|
+
children: /* @__PURE__ */ jsx212(
|
|
9253
|
+
Image,
|
|
9254
|
+
{
|
|
9255
|
+
alt: alt ?? "",
|
|
9256
|
+
fill: true,
|
|
9257
|
+
fit: "cover",
|
|
9258
|
+
src
|
|
9259
|
+
}
|
|
9260
|
+
)
|
|
9261
|
+
}
|
|
9262
|
+
);
|
|
9263
|
+
};
|
|
9264
|
+
|
|
9186
9265
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
9187
9266
|
import { Children as Children2 } from "react";
|
|
9188
|
-
import { styled as
|
|
9189
|
-
import { Fragment as Fragment4, jsx as
|
|
9190
|
-
var StyledBreadcrumbs =
|
|
9267
|
+
import { styled as styled18 } from "styled-components";
|
|
9268
|
+
import { Fragment as Fragment4, jsx as jsx213, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
9269
|
+
var StyledBreadcrumbs = styled18.nav`
|
|
9191
9270
|
display: flex;
|
|
9192
9271
|
align-items: center;
|
|
9193
9272
|
gap: var(--wui-space-01);
|
|
@@ -9206,7 +9285,7 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
9206
9285
|
}
|
|
9207
9286
|
const crumbMaxWidth = Math.floor(100 / crumbs.length) - BUFFER_WIDTH;
|
|
9208
9287
|
return /* @__PURE__ */ jsxs14(Fragment4, { children: [
|
|
9209
|
-
/* @__PURE__ */
|
|
9288
|
+
/* @__PURE__ */ jsx213("style", { type: "text/css", children: `
|
|
9210
9289
|
[data-wui-breadcrumbs] {
|
|
9211
9290
|
container-type: inline-size;
|
|
9212
9291
|
container-name: breadcrumbs;
|
|
@@ -9218,7 +9297,7 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
9218
9297
|
}
|
|
9219
9298
|
}
|
|
9220
9299
|
` }),
|
|
9221
|
-
/* @__PURE__ */
|
|
9300
|
+
/* @__PURE__ */ jsx213(
|
|
9222
9301
|
StyledBreadcrumbs,
|
|
9223
9302
|
{
|
|
9224
9303
|
"aria-label": "Breadcrumbs",
|
|
@@ -9232,9 +9311,9 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
9232
9311
|
Breadcrumbs.displayName = "Breadcrumbs_UI";
|
|
9233
9312
|
|
|
9234
9313
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
9235
|
-
import { styled as
|
|
9236
|
-
import { Fragment as Fragment5, jsx as
|
|
9237
|
-
var BreadcrumbContent =
|
|
9314
|
+
import { styled as styled19 } from "styled-components";
|
|
9315
|
+
import { Fragment as Fragment5, jsx as jsx214, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
9316
|
+
var BreadcrumbContent = styled19.span`
|
|
9238
9317
|
overflow: hidden;
|
|
9239
9318
|
white-space: nowrap;
|
|
9240
9319
|
display: block;
|
|
@@ -9244,17 +9323,17 @@ var BreadcrumbContent = styled18.span`
|
|
|
9244
9323
|
`;
|
|
9245
9324
|
var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
9246
9325
|
return /* @__PURE__ */ jsxs15(Fragment5, { children: [
|
|
9247
|
-
/* @__PURE__ */
|
|
9326
|
+
/* @__PURE__ */ jsx214(
|
|
9248
9327
|
Button,
|
|
9249
9328
|
{
|
|
9250
9329
|
...props,
|
|
9251
9330
|
href,
|
|
9252
9331
|
leftIcon: icon,
|
|
9253
9332
|
variant: "ghost",
|
|
9254
|
-
children: /* @__PURE__ */
|
|
9333
|
+
children: /* @__PURE__ */ jsx214(BreadcrumbContent, { "data-wui-breadcrumb": true, children })
|
|
9255
9334
|
}
|
|
9256
9335
|
),
|
|
9257
|
-
/* @__PURE__ */
|
|
9336
|
+
/* @__PURE__ */ jsx214("div", { "data-wui-breadcrumb-divider": true, children: /* @__PURE__ */ jsx214(
|
|
9258
9337
|
Icon,
|
|
9259
9338
|
{
|
|
9260
9339
|
size: "sm",
|
|
@@ -9266,9 +9345,9 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
|
9266
9345
|
};
|
|
9267
9346
|
|
|
9268
9347
|
// src/components/Card/Card.tsx
|
|
9269
|
-
import { styled as
|
|
9270
|
-
import { jsx as
|
|
9271
|
-
var StyledCard =
|
|
9348
|
+
import { styled as styled20 } from "styled-components";
|
|
9349
|
+
import { jsx as jsx215 } from "react/jsx-runtime";
|
|
9350
|
+
var StyledCard = styled20(Box)`
|
|
9272
9351
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9273
9352
|
box-sizing: border-box;
|
|
9274
9353
|
padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
|
|
@@ -9306,7 +9385,7 @@ var Card = ({
|
|
|
9306
9385
|
prominence = "secondary",
|
|
9307
9386
|
width,
|
|
9308
9387
|
...props
|
|
9309
|
-
}) => /* @__PURE__ */
|
|
9388
|
+
}) => /* @__PURE__ */ jsx215(
|
|
9310
9389
|
StyledCard,
|
|
9311
9390
|
{
|
|
9312
9391
|
$backgroundColor: prominenceMap[prominence].backgroundColor,
|
|
@@ -9326,9 +9405,9 @@ Card.displayName = "Card_UI";
|
|
|
9326
9405
|
|
|
9327
9406
|
// src/components/Center/Center.tsx
|
|
9328
9407
|
import { forwardRef as forwardRef9 } from "react";
|
|
9329
|
-
import { styled as
|
|
9330
|
-
import { jsx as
|
|
9331
|
-
var StyledCenter =
|
|
9408
|
+
import { styled as styled21 } from "styled-components";
|
|
9409
|
+
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
9410
|
+
var StyledCenter = styled21.div`
|
|
9332
9411
|
box-sizing: border-box;
|
|
9333
9412
|
margin-left: auto;
|
|
9334
9413
|
margin-right: auto;
|
|
@@ -9341,7 +9420,7 @@ var StyledCenter = styled20.div`
|
|
|
9341
9420
|
`}
|
|
9342
9421
|
`;
|
|
9343
9422
|
var Center = forwardRef9(
|
|
9344
|
-
({ maxWidth = "100%", gutterWidth = "space-00", intrinsic = false, children, ...props }, ref) => /* @__PURE__ */
|
|
9423
|
+
({ maxWidth = "100%", gutterWidth = "space-00", intrinsic = false, children, ...props }, ref) => /* @__PURE__ */ jsx216(
|
|
9345
9424
|
StyledCenter,
|
|
9346
9425
|
{
|
|
9347
9426
|
ref,
|
|
@@ -9358,18 +9437,18 @@ Center.displayName = "Center_UI";
|
|
|
9358
9437
|
// src/components/Checkbox/Checkbox.tsx
|
|
9359
9438
|
import { isNonEmptyString as isNonEmptyString3, isNotUndefined as isNotUndefined7 } from "@wistia/type-guards";
|
|
9360
9439
|
import { forwardRef as forwardRef12, useId as useId2 } from "react";
|
|
9361
|
-
import { styled as
|
|
9440
|
+
import { styled as styled28, css as css26 } from "styled-components";
|
|
9362
9441
|
|
|
9363
9442
|
// src/private/components/FormControlLabel/FormControlLabel.tsx
|
|
9364
9443
|
import { isNil as isNil13, isNotNil as isNotNil15 } from "@wistia/type-guards";
|
|
9365
|
-
import { styled as
|
|
9444
|
+
import { styled as styled24, css as css25 } from "styled-components";
|
|
9366
9445
|
|
|
9367
9446
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
9368
|
-
import { styled as
|
|
9447
|
+
import { styled as styled22 } from "styled-components";
|
|
9369
9448
|
import { isNotNil as isNotNil14 } from "@wistia/type-guards";
|
|
9370
|
-
import { jsx as
|
|
9371
|
-
var VisuallyHidden =
|
|
9372
|
-
var VisuallyHiddenButFocusable =
|
|
9449
|
+
import { jsx as jsx217 } from "react/jsx-runtime";
|
|
9450
|
+
var VisuallyHidden = styled22.div({ ...visuallyHiddenStyle });
|
|
9451
|
+
var VisuallyHiddenButFocusable = styled22.div({
|
|
9373
9452
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
9374
9453
|
});
|
|
9375
9454
|
var ScreenReaderOnly = ({
|
|
@@ -9380,20 +9459,20 @@ var ScreenReaderOnly = ({
|
|
|
9380
9459
|
}) => {
|
|
9381
9460
|
const accessibleText = isNotNil14(text) ? text : children;
|
|
9382
9461
|
if (focusable) {
|
|
9383
|
-
return /* @__PURE__ */
|
|
9462
|
+
return /* @__PURE__ */ jsx217(VisuallyHiddenButFocusable, { ...props, children: accessibleText });
|
|
9384
9463
|
}
|
|
9385
|
-
return /* @__PURE__ */
|
|
9464
|
+
return /* @__PURE__ */ jsx217(VisuallyHidden, { ...props, children: accessibleText });
|
|
9386
9465
|
};
|
|
9387
9466
|
ScreenReaderOnly.displayName = "ScreenReaderOnly_UI";
|
|
9388
9467
|
|
|
9389
9468
|
// src/private/components/FormControlLabel/FormControlLabelDescription.tsx
|
|
9390
|
-
import { styled as
|
|
9469
|
+
import { styled as styled23, css as css24 } from "styled-components";
|
|
9391
9470
|
import { isNil as isNil12 } from "@wistia/type-guards";
|
|
9392
|
-
import { jsx as
|
|
9471
|
+
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
9393
9472
|
var disabledStyle = css24`
|
|
9394
9473
|
color: var(--wui-color-text-disabled);
|
|
9395
9474
|
`;
|
|
9396
|
-
var StyledFormControlLabelDescription =
|
|
9475
|
+
var StyledFormControlLabelDescription = styled23.div`
|
|
9397
9476
|
color: var(--wui-color-text-secondary);
|
|
9398
9477
|
display: block;
|
|
9399
9478
|
font-size: var(--wui-typography-body-4-size);
|
|
@@ -9410,7 +9489,7 @@ var FormControlLabelDescription = ({
|
|
|
9410
9489
|
if (isNil12(children)) {
|
|
9411
9490
|
return null;
|
|
9412
9491
|
}
|
|
9413
|
-
return /* @__PURE__ */
|
|
9492
|
+
return /* @__PURE__ */ jsx218(
|
|
9414
9493
|
StyledFormControlLabelDescription,
|
|
9415
9494
|
{
|
|
9416
9495
|
...props,
|
|
@@ -9422,16 +9501,16 @@ var FormControlLabelDescription = ({
|
|
|
9422
9501
|
FormControlLabelDescription.displayName = "FormControlLabelDescription";
|
|
9423
9502
|
|
|
9424
9503
|
// src/private/components/FormControlLabel/FormControlLabel.tsx
|
|
9425
|
-
import { jsx as
|
|
9504
|
+
import { jsx as jsx219, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
9426
9505
|
var disabledStyle2 = css25`
|
|
9427
9506
|
cursor: not-allowed;
|
|
9428
9507
|
color: var(--wui-color-text-disabled);
|
|
9429
9508
|
`;
|
|
9430
|
-
var StyledLabelWrapper =
|
|
9509
|
+
var StyledLabelWrapper = styled24.div`
|
|
9431
9510
|
display: flex;
|
|
9432
9511
|
flex-direction: column;
|
|
9433
9512
|
`;
|
|
9434
|
-
var StyledFormControlLabel =
|
|
9513
|
+
var StyledFormControlLabel = styled24.label`
|
|
9435
9514
|
cursor: pointer;
|
|
9436
9515
|
display: flex;
|
|
9437
9516
|
align-items: flex-start;
|
|
@@ -9458,9 +9537,9 @@ var FormControlLabel = ({
|
|
|
9458
9537
|
if (isNil13(label)) {
|
|
9459
9538
|
return null;
|
|
9460
9539
|
}
|
|
9461
|
-
const labelContent = hideLabel ? /* @__PURE__ */
|
|
9540
|
+
const labelContent = hideLabel ? /* @__PURE__ */ jsx219(ScreenReaderOnly, { children: label }) : /* @__PURE__ */ jsxs16(StyledLabelWrapper, { children: [
|
|
9462
9541
|
label,
|
|
9463
|
-
/* @__PURE__ */
|
|
9542
|
+
/* @__PURE__ */ jsx219(FormControlLabelDescription, { children: description })
|
|
9464
9543
|
] });
|
|
9465
9544
|
const slot = isNotNil15(controlSlot) ? controlSlot : null;
|
|
9466
9545
|
return /* @__PURE__ */ jsxs16(
|
|
@@ -9484,16 +9563,16 @@ import { createContext as createContext4, useMemo as useMemo7, useContext as use
|
|
|
9484
9563
|
import { isArray } from "@wistia/type-guards";
|
|
9485
9564
|
|
|
9486
9565
|
// src/components/FormGroup/FormGroup.tsx
|
|
9487
|
-
import { styled as
|
|
9566
|
+
import { styled as styled26 } from "styled-components";
|
|
9488
9567
|
import { useRef as useRef7 } from "react";
|
|
9489
9568
|
import { isNonEmptyString as isNonEmptyString2, isNotNil as isNotNil16 } from "@wistia/type-guards";
|
|
9490
9569
|
|
|
9491
9570
|
// src/components/Stack/Stack.tsx
|
|
9492
9571
|
import { forwardRef as forwardRef10 } from "react";
|
|
9493
|
-
import { styled as
|
|
9494
|
-
import { jsx as
|
|
9572
|
+
import { styled as styled25 } from "styled-components";
|
|
9573
|
+
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
9495
9574
|
var DEFAULT_ELEMENT4 = "div";
|
|
9496
|
-
var StyledStack =
|
|
9575
|
+
var StyledStack = styled25.div`
|
|
9497
9576
|
display: flex;
|
|
9498
9577
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
9499
9578
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -9504,7 +9583,7 @@ var StackComponent = forwardRef10(
|
|
|
9504
9583
|
const responsiveGap = useResponsiveProp(gap);
|
|
9505
9584
|
const responsiveDirection = useResponsiveProp(direction);
|
|
9506
9585
|
const responsiveAlignItems = useResponsiveProp(alignItems);
|
|
9507
|
-
return /* @__PURE__ */
|
|
9586
|
+
return /* @__PURE__ */ jsx220(
|
|
9508
9587
|
StyledStack,
|
|
9509
9588
|
{
|
|
9510
9589
|
ref,
|
|
@@ -9521,13 +9600,13 @@ StackComponent.displayName = "Stack_UI";
|
|
|
9521
9600
|
var Stack = makePolymorphic(StackComponent);
|
|
9522
9601
|
|
|
9523
9602
|
// src/components/FormGroup/FormGroup.tsx
|
|
9524
|
-
import { jsx as
|
|
9525
|
-
var StyledFieldset =
|
|
9603
|
+
import { jsx as jsx221, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
9604
|
+
var StyledFieldset = styled26.fieldset`
|
|
9526
9605
|
padding: 0;
|
|
9527
9606
|
margin: 0;
|
|
9528
9607
|
border: 0;
|
|
9529
9608
|
`;
|
|
9530
|
-
var StyledLegend =
|
|
9609
|
+
var StyledLegend = styled26.legend`
|
|
9531
9610
|
padding-inline: 0;
|
|
9532
9611
|
display: flex;
|
|
9533
9612
|
flex-direction: column;
|
|
@@ -9557,7 +9636,7 @@ var FormGroup = ({
|
|
|
9557
9636
|
variant: "heading5",
|
|
9558
9637
|
children: [
|
|
9559
9638
|
hasLabel ? label : null,
|
|
9560
|
-
hasDescription ? /* @__PURE__ */
|
|
9639
|
+
hasDescription ? /* @__PURE__ */ jsx221(
|
|
9561
9640
|
Text,
|
|
9562
9641
|
{
|
|
9563
9642
|
"data-wui-form-group-description": true,
|
|
@@ -9579,7 +9658,7 @@ FormGroup.displayName = "FormGroup_UI";
|
|
|
9579
9658
|
|
|
9580
9659
|
// src/components/Form/Form.tsx
|
|
9581
9660
|
import { forwardRef as forwardRef11, useRef as useRef8, useMemo as useMemo6, createContext as createContext3, useState as useState11, useId } from "react";
|
|
9582
|
-
import { styled as
|
|
9661
|
+
import { styled as styled27 } from "styled-components";
|
|
9583
9662
|
import { isNotUndefined as isNotUndefined6, isUndefined as isUndefined3 } from "@wistia/type-guards";
|
|
9584
9663
|
|
|
9585
9664
|
// src/components/Form/serializeFormData.tsx
|
|
@@ -9598,8 +9677,8 @@ var serializeFormData = (formData) => {
|
|
|
9598
9677
|
};
|
|
9599
9678
|
|
|
9600
9679
|
// src/components/Form/Form.tsx
|
|
9601
|
-
import { jsx as
|
|
9602
|
-
var StyledForm =
|
|
9680
|
+
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
9681
|
+
var StyledForm = styled27.form`
|
|
9603
9682
|
--form-default-width: 690px;
|
|
9604
9683
|
|
|
9605
9684
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
@@ -9678,7 +9757,7 @@ var Form = forwardRef11(
|
|
|
9678
9757
|
}, [labelPosition, values, errors, id, hasSubmitted]);
|
|
9679
9758
|
return (
|
|
9680
9759
|
// @ts-expect-error - generic context providers are a giant pain
|
|
9681
|
-
/* @__PURE__ */
|
|
9760
|
+
/* @__PURE__ */ jsx222(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsx222(
|
|
9682
9761
|
Stack,
|
|
9683
9762
|
{
|
|
9684
9763
|
...props,
|
|
@@ -9699,7 +9778,7 @@ var Form = forwardRef11(
|
|
|
9699
9778
|
);
|
|
9700
9779
|
|
|
9701
9780
|
// src/components/FormGroup/CheckboxGroup.tsx
|
|
9702
|
-
import { jsx as
|
|
9781
|
+
import { jsx as jsx223 } from "react/jsx-runtime";
|
|
9703
9782
|
var CheckboxGroupContext = createContext4(null);
|
|
9704
9783
|
var useCheckboxGroup = () => {
|
|
9705
9784
|
return useContext3(CheckboxGroupContext);
|
|
@@ -9720,13 +9799,13 @@ var CheckboxGroup = ({
|
|
|
9720
9799
|
value: derivedValue
|
|
9721
9800
|
};
|
|
9722
9801
|
}, [name, derivedValue, onChange]);
|
|
9723
|
-
return /* @__PURE__ */
|
|
9802
|
+
return /* @__PURE__ */ jsx223(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx223(FormGroup, { ...props, children }) });
|
|
9724
9803
|
};
|
|
9725
9804
|
CheckboxGroup.displayName = "CheckboxGroup_UI";
|
|
9726
9805
|
|
|
9727
9806
|
// src/components/Checkbox/Checkbox.tsx
|
|
9728
|
-
import { jsx as
|
|
9729
|
-
var CheckIcon = () => /* @__PURE__ */
|
|
9807
|
+
import { jsx as jsx224, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
9808
|
+
var CheckIcon = () => /* @__PURE__ */ jsx224(
|
|
9730
9809
|
"svg",
|
|
9731
9810
|
{
|
|
9732
9811
|
fill: "inherit",
|
|
@@ -9734,7 +9813,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx223(
|
|
|
9734
9813
|
viewBox: "0 0 10 8",
|
|
9735
9814
|
width: "10",
|
|
9736
9815
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9737
|
-
children: /* @__PURE__ */
|
|
9816
|
+
children: /* @__PURE__ */ jsx224(
|
|
9738
9817
|
"path",
|
|
9739
9818
|
{
|
|
9740
9819
|
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",
|
|
@@ -9760,7 +9839,7 @@ var getSizeCss = (size) => {
|
|
|
9760
9839
|
if (size === "lg") return sizeLarge;
|
|
9761
9840
|
return sizeMedium;
|
|
9762
9841
|
};
|
|
9763
|
-
var StyledCheckboxWrapper =
|
|
9842
|
+
var StyledCheckboxWrapper = styled28.div`
|
|
9764
9843
|
--wui-checkbox-background-color: var(--wui-color-bg-surface);
|
|
9765
9844
|
--wui-checkbox-border-color: var(--wui-color-border-secondary);
|
|
9766
9845
|
--wui-checkbox-icon-color: transparent;
|
|
@@ -9797,7 +9876,7 @@ var StyledCheckboxWrapper = styled27.div`
|
|
|
9797
9876
|
/* TODO this solves a problem but potentially causes and a11y issue */
|
|
9798
9877
|
user-select: none;
|
|
9799
9878
|
`;
|
|
9800
|
-
var StyledCheckboxInput =
|
|
9879
|
+
var StyledCheckboxInput = styled28.div`
|
|
9801
9880
|
${({ $size }) => getSizeCss($size)}
|
|
9802
9881
|
margin: 0;
|
|
9803
9882
|
border-radius: var(--wui-border-radius-01);
|
|
@@ -9824,7 +9903,7 @@ var StyledCheckboxInput = styled27.div`
|
|
|
9824
9903
|
height: var(--wui-checkbox-icon-size);
|
|
9825
9904
|
}
|
|
9826
9905
|
`;
|
|
9827
|
-
var StyledHiddenCheckboxInput =
|
|
9906
|
+
var StyledHiddenCheckboxInput = styled28.input`
|
|
9828
9907
|
${visuallyHiddenStyle}
|
|
9829
9908
|
position: relative;
|
|
9830
9909
|
`;
|
|
@@ -9858,7 +9937,7 @@ var Checkbox = forwardRef12(
|
|
|
9858
9937
|
$hideLabel: hideLabel,
|
|
9859
9938
|
disabled,
|
|
9860
9939
|
children: [
|
|
9861
|
-
/* @__PURE__ */
|
|
9940
|
+
/* @__PURE__ */ jsx224(
|
|
9862
9941
|
StyledHiddenCheckboxInput,
|
|
9863
9942
|
{
|
|
9864
9943
|
...props,
|
|
@@ -9873,16 +9952,16 @@ var Checkbox = forwardRef12(
|
|
|
9873
9952
|
value
|
|
9874
9953
|
}
|
|
9875
9954
|
),
|
|
9876
|
-
/* @__PURE__ */
|
|
9955
|
+
/* @__PURE__ */ jsx224(
|
|
9877
9956
|
FormControlLabel,
|
|
9878
9957
|
{
|
|
9879
|
-
controlSlot: /* @__PURE__ */
|
|
9958
|
+
controlSlot: /* @__PURE__ */ jsx224(
|
|
9880
9959
|
StyledCheckboxInput,
|
|
9881
9960
|
{
|
|
9882
9961
|
$disabled: disabled,
|
|
9883
9962
|
$size: size,
|
|
9884
9963
|
"data-wui-faux-input": "true",
|
|
9885
|
-
children: /* @__PURE__ */
|
|
9964
|
+
children: /* @__PURE__ */ jsx224(CheckIcon, {})
|
|
9886
9965
|
}
|
|
9887
9966
|
),
|
|
9888
9967
|
description,
|
|
@@ -9945,9 +10024,9 @@ ClickRegion.displayName = "ClickRegion_UI";
|
|
|
9945
10024
|
// src/components/Collapsible/Collapsible.tsx
|
|
9946
10025
|
import { Root as CollapsibleRoot } from "@radix-ui/react-collapsible";
|
|
9947
10026
|
import { isNotNil as isNotNil17 } from "@wistia/type-guards";
|
|
9948
|
-
import { styled as
|
|
9949
|
-
import { jsx as
|
|
9950
|
-
var StyledRoot =
|
|
10027
|
+
import { styled as styled29 } from "styled-components";
|
|
10028
|
+
import { jsx as jsx225 } from "react/jsx-runtime";
|
|
10029
|
+
var StyledRoot = styled29(CollapsibleRoot)`
|
|
9951
10030
|
&[data-state='closed'] [data-wui-collapsible-content] {
|
|
9952
10031
|
display: -webkit-box;
|
|
9953
10032
|
-webkit-box-orient: vertical;
|
|
@@ -9963,16 +10042,16 @@ var Collapsible = ({
|
|
|
9963
10042
|
const controlProps = {
|
|
9964
10043
|
...isNotNil17(onOpenChange) && isNotNil17(isOpen) ? { open: isOpen, onOpenChange } : {}
|
|
9965
10044
|
};
|
|
9966
|
-
return /* @__PURE__ */
|
|
10045
|
+
return /* @__PURE__ */ jsx225(StyledRoot, { ...controlProps, children });
|
|
9967
10046
|
};
|
|
9968
10047
|
Collapsible.displayName = "Collapsible_UI";
|
|
9969
10048
|
|
|
9970
10049
|
// src/components/Collapsible/CollapsibleTrigger.tsx
|
|
9971
10050
|
import { Children as Children4 } from "react";
|
|
9972
10051
|
import { Trigger } from "@radix-ui/react-collapsible";
|
|
9973
|
-
import { styled as
|
|
9974
|
-
import { jsx as
|
|
9975
|
-
var StyledTrigger =
|
|
10052
|
+
import { styled as styled30 } from "styled-components";
|
|
10053
|
+
import { jsx as jsx226 } from "react/jsx-runtime";
|
|
10054
|
+
var StyledTrigger = styled30(Trigger)`
|
|
9976
10055
|
[data-wui-collapsible-icon] {
|
|
9977
10056
|
transition: transform var(--wui-motion-duration-03) ease-in-out;
|
|
9978
10057
|
}
|
|
@@ -9995,11 +10074,11 @@ var StyledTrigger = styled29(Trigger)`
|
|
|
9995
10074
|
`;
|
|
9996
10075
|
var CollapsibleTrigger = ({ children }) => {
|
|
9997
10076
|
Children4.only(children);
|
|
9998
|
-
return /* @__PURE__ */
|
|
10077
|
+
return /* @__PURE__ */ jsx226(StyledTrigger, { asChild: true, children });
|
|
9999
10078
|
};
|
|
10000
10079
|
|
|
10001
10080
|
// src/components/Collapsible/CollapsibleTriggerIcon.tsx
|
|
10002
|
-
import { jsx as
|
|
10081
|
+
import { jsx as jsx227 } from "react/jsx-runtime";
|
|
10003
10082
|
var iconRotationMap = {
|
|
10004
10083
|
"caret-left-strong": "-90",
|
|
10005
10084
|
"caret-left": "-90",
|
|
@@ -10008,7 +10087,7 @@ var iconRotationMap = {
|
|
|
10008
10087
|
plus: "45"
|
|
10009
10088
|
};
|
|
10010
10089
|
var CollapsibleTriggerIcon = ({ type, ...props }) => {
|
|
10011
|
-
return /* @__PURE__ */
|
|
10090
|
+
return /* @__PURE__ */ jsx227(
|
|
10012
10091
|
Icon,
|
|
10013
10092
|
{
|
|
10014
10093
|
...props,
|
|
@@ -10021,16 +10100,16 @@ var CollapsibleTriggerIcon = ({ type, ...props }) => {
|
|
|
10021
10100
|
CollapsibleTriggerIcon.displayName = "CollapsibleTriggerIcon_UI";
|
|
10022
10101
|
|
|
10023
10102
|
// src/components/Collapsible/CollapsibleContent.tsx
|
|
10024
|
-
import { styled as
|
|
10103
|
+
import { styled as styled31 } from "styled-components";
|
|
10025
10104
|
import { Content } from "@radix-ui/react-collapsible";
|
|
10026
10105
|
import { isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
|
|
10027
|
-
import { Fragment as Fragment6, jsx as
|
|
10028
|
-
var ClampedContent =
|
|
10106
|
+
import { Fragment as Fragment6, jsx as jsx228, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
10107
|
+
var ClampedContent = styled31.div`
|
|
10029
10108
|
--wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
|
|
10030
10109
|
`;
|
|
10031
10110
|
var CollapsibleContent = ({ clamp, children }) => {
|
|
10032
10111
|
if (isNotUndefined8(clamp)) {
|
|
10033
|
-
return /* @__PURE__ */
|
|
10112
|
+
return /* @__PURE__ */ jsx228(
|
|
10034
10113
|
ClampedContent,
|
|
10035
10114
|
{
|
|
10036
10115
|
$clamp: clamp,
|
|
@@ -10039,7 +10118,7 @@ var CollapsibleContent = ({ clamp, children }) => {
|
|
|
10039
10118
|
}
|
|
10040
10119
|
);
|
|
10041
10120
|
}
|
|
10042
|
-
return /* @__PURE__ */
|
|
10121
|
+
return /* @__PURE__ */ jsx228(Content, { children: /* @__PURE__ */ jsxs19(Fragment6, { children: [
|
|
10043
10122
|
children,
|
|
10044
10123
|
" "
|
|
10045
10124
|
] }) });
|
|
@@ -10047,7 +10126,7 @@ var CollapsibleContent = ({ clamp, children }) => {
|
|
|
10047
10126
|
|
|
10048
10127
|
// src/components/ColorPicker/ColorGrid.tsx
|
|
10049
10128
|
import { useCallback as useCallback10 } from "react";
|
|
10050
|
-
import { styled as
|
|
10129
|
+
import { styled as styled33 } from "styled-components";
|
|
10051
10130
|
import { Root as RadioGroupRoot } from "@radix-ui/react-radio-group";
|
|
10052
10131
|
|
|
10053
10132
|
// src/components/ColorPicker/ColorPickerContext.tsx
|
|
@@ -10440,7 +10519,7 @@ var hasAccessibleDerivatives = ({
|
|
|
10440
10519
|
};
|
|
10441
10520
|
|
|
10442
10521
|
// src/components/ColorPicker/ColorPickerContext.tsx
|
|
10443
|
-
import { jsx as
|
|
10522
|
+
import { jsx as jsx229 } from "react/jsx-runtime";
|
|
10444
10523
|
var ColorPickerContext = createContext5(null);
|
|
10445
10524
|
var ColorPickerProvider = ({
|
|
10446
10525
|
children,
|
|
@@ -10581,7 +10660,7 @@ var ColorPickerProvider = ({
|
|
|
10581
10660
|
valueAsHsv
|
|
10582
10661
|
]
|
|
10583
10662
|
);
|
|
10584
|
-
return /* @__PURE__ */
|
|
10663
|
+
return /* @__PURE__ */ jsx229(ColorPickerContext.Provider, { value: contextValue, children });
|
|
10585
10664
|
};
|
|
10586
10665
|
var useColorPickerState = () => {
|
|
10587
10666
|
const context = useContext4(ColorPickerContext);
|
|
@@ -10592,8 +10671,8 @@ var useColorPickerState = () => {
|
|
|
10592
10671
|
};
|
|
10593
10672
|
|
|
10594
10673
|
// src/components/Label/Label.tsx
|
|
10595
|
-
import { styled as
|
|
10596
|
-
import { jsx as
|
|
10674
|
+
import { styled as styled32, css as css27 } from "styled-components";
|
|
10675
|
+
import { jsx as jsx230 } from "react/jsx-runtime";
|
|
10597
10676
|
var requiredStyle = css27`
|
|
10598
10677
|
&::after {
|
|
10599
10678
|
color: var(--wui-color-text-error);
|
|
@@ -10605,7 +10684,7 @@ var requiredStyle = css27`
|
|
|
10605
10684
|
var disabledStyle3 = css27`
|
|
10606
10685
|
color: var(--wui-color-text-disabled);
|
|
10607
10686
|
`;
|
|
10608
|
-
var StyledLabel2 =
|
|
10687
|
+
var StyledLabel2 = styled32.label`
|
|
10609
10688
|
display: block;
|
|
10610
10689
|
width: 100%;
|
|
10611
10690
|
color: var(--wui-color-text);
|
|
@@ -10637,7 +10716,7 @@ var Label = ({
|
|
|
10637
10716
|
screenReaderOnly = false,
|
|
10638
10717
|
...props
|
|
10639
10718
|
}) => {
|
|
10640
|
-
return /* @__PURE__ */
|
|
10719
|
+
return /* @__PURE__ */ jsx230(
|
|
10641
10720
|
StyledLabel2,
|
|
10642
10721
|
{
|
|
10643
10722
|
...props,
|
|
@@ -10652,16 +10731,16 @@ var Label = ({
|
|
|
10652
10731
|
Label.displayName = "Label_UI";
|
|
10653
10732
|
|
|
10654
10733
|
// src/components/ColorPicker/ColorGrid.tsx
|
|
10655
|
-
import { jsx as
|
|
10656
|
-
var Container =
|
|
10734
|
+
import { jsx as jsx231, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
10735
|
+
var Container = styled33.div`
|
|
10657
10736
|
display: grid;
|
|
10658
10737
|
gap: var(--wui-space-01);
|
|
10659
10738
|
grid-template-columns: minmax(0, 1fr);
|
|
10660
10739
|
`;
|
|
10661
|
-
var LabelContainer =
|
|
10740
|
+
var LabelContainer = styled33.div`
|
|
10662
10741
|
padding-top: var(--wui-space-01);
|
|
10663
10742
|
`;
|
|
10664
|
-
var ItemsContainer =
|
|
10743
|
+
var ItemsContainer = styled33(RadioGroupRoot)`
|
|
10665
10744
|
display: flex;
|
|
10666
10745
|
flex-wrap: wrap;
|
|
10667
10746
|
align-items: center;
|
|
@@ -10679,8 +10758,8 @@ var ColorGrid = ({ children, label }) => {
|
|
|
10679
10758
|
[onChangeNonDerivedValueAsHsv]
|
|
10680
10759
|
);
|
|
10681
10760
|
return /* @__PURE__ */ jsxs20(Container, { children: [
|
|
10682
|
-
label != null && /* @__PURE__ */
|
|
10683
|
-
/* @__PURE__ */
|
|
10761
|
+
label != null && /* @__PURE__ */ jsx231(LabelContainer, { children: /* @__PURE__ */ jsx231(Label, { children: label }) }),
|
|
10762
|
+
/* @__PURE__ */ jsx231(
|
|
10684
10763
|
ItemsContainer,
|
|
10685
10764
|
{
|
|
10686
10765
|
onValueChange,
|
|
@@ -10693,14 +10772,14 @@ var ColorGrid = ({ children, label }) => {
|
|
|
10693
10772
|
ColorGrid.displayName = "ColorGrid_UI";
|
|
10694
10773
|
|
|
10695
10774
|
// src/components/ColorPicker/ColorGridOption.tsx
|
|
10696
|
-
import { styled as
|
|
10775
|
+
import { styled as styled36 } from "styled-components";
|
|
10697
10776
|
import { Item as RadioGroupItem } from "@radix-ui/react-radio-group";
|
|
10698
10777
|
import { formatHex as formatHex3 } from "culori/fn";
|
|
10699
10778
|
|
|
10700
10779
|
// src/components/ColorPicker/ColorSwatch.tsx
|
|
10701
|
-
import { styled as
|
|
10702
|
-
import { jsx as
|
|
10703
|
-
var ColorSwatchDiv =
|
|
10780
|
+
import { styled as styled34 } from "styled-components";
|
|
10781
|
+
import { jsx as jsx232, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
10782
|
+
var ColorSwatchDiv = styled34.div`
|
|
10704
10783
|
aspect-ratio: 1;
|
|
10705
10784
|
width: ${({ $diameterPx }) => `${$diameterPx}px`};
|
|
10706
10785
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -10719,7 +10798,7 @@ var ColorSwatchDiv = styled33.div`
|
|
|
10719
10798
|
outline-offset: 2px;
|
|
10720
10799
|
transform: ${({ $selected }) => $selected ? "scale(0.9)" : "scale(1)"};
|
|
10721
10800
|
`;
|
|
10722
|
-
var DerivativeHalfCircle =
|
|
10801
|
+
var DerivativeHalfCircle = styled34.div`
|
|
10723
10802
|
position: absolute;
|
|
10724
10803
|
right: 0;
|
|
10725
10804
|
top: 0;
|
|
@@ -10747,7 +10826,7 @@ var ColorSwatch = ({
|
|
|
10747
10826
|
backgroundColor: value
|
|
10748
10827
|
},
|
|
10749
10828
|
children: [
|
|
10750
|
-
derivativeIsSelected ? /* @__PURE__ */
|
|
10829
|
+
derivativeIsSelected ? /* @__PURE__ */ jsx232(DerivativeHalfCircle, { $color: colorPickerValueAsHex }) : null,
|
|
10751
10830
|
children
|
|
10752
10831
|
]
|
|
10753
10832
|
}
|
|
@@ -10762,8 +10841,8 @@ import {
|
|
|
10762
10841
|
Portal as TooltipPortal,
|
|
10763
10842
|
Arrow as TooltipArrow
|
|
10764
10843
|
} from "@radix-ui/react-tooltip";
|
|
10765
|
-
import { styled as
|
|
10766
|
-
import { jsx as
|
|
10844
|
+
import { styled as styled35, keyframes } from "styled-components";
|
|
10845
|
+
import { jsx as jsx233, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
10767
10846
|
var hide = keyframes`
|
|
10768
10847
|
from {
|
|
10769
10848
|
opacity: 1;
|
|
@@ -10812,7 +10891,7 @@ var slideRightAndFade = keyframes`
|
|
|
10812
10891
|
transform: translateX(0);
|
|
10813
10892
|
}
|
|
10814
10893
|
`;
|
|
10815
|
-
var StyledContent =
|
|
10894
|
+
var StyledContent = styled35(TooltipContent)`
|
|
10816
10895
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
10817
10896
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
10818
10897
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -10881,15 +10960,15 @@ var Tooltip = ({
|
|
|
10881
10960
|
delayDuration: delay,
|
|
10882
10961
|
...rootProps,
|
|
10883
10962
|
children: [
|
|
10884
|
-
/* @__PURE__ */
|
|
10885
|
-
/* @__PURE__ */
|
|
10963
|
+
/* @__PURE__ */ jsx233(TooltipTrigger, { asChild: true, children }),
|
|
10964
|
+
/* @__PURE__ */ jsx233(TooltipPortal, { container, children: /* @__PURE__ */ jsxs22(
|
|
10886
10965
|
StyledContent,
|
|
10887
10966
|
{
|
|
10888
10967
|
side: direction,
|
|
10889
10968
|
sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
|
|
10890
10969
|
children: [
|
|
10891
10970
|
content,
|
|
10892
|
-
!hideArrow ? /* @__PURE__ */
|
|
10971
|
+
!hideArrow ? /* @__PURE__ */ jsx233(TooltipArrow, { asChild: true, children: /* @__PURE__ */ jsx233(
|
|
10893
10972
|
"svg",
|
|
10894
10973
|
{
|
|
10895
10974
|
fill: "var(--tooltip-bg)",
|
|
@@ -10898,7 +10977,7 @@ var Tooltip = ({
|
|
|
10898
10977
|
viewBox: "0 0 12 8",
|
|
10899
10978
|
width: "12",
|
|
10900
10979
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10901
|
-
children: /* @__PURE__ */
|
|
10980
|
+
children: /* @__PURE__ */ jsx233("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
|
|
10902
10981
|
}
|
|
10903
10982
|
) }) : null
|
|
10904
10983
|
]
|
|
@@ -10911,8 +10990,8 @@ var Tooltip = ({
|
|
|
10911
10990
|
Tooltip.displayName = "Tooltip_UI";
|
|
10912
10991
|
|
|
10913
10992
|
// src/components/ColorPicker/ColorGridOption.tsx
|
|
10914
|
-
import { jsx as
|
|
10915
|
-
var Container2 =
|
|
10993
|
+
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
10994
|
+
var Container2 = styled36(RadioGroupItem)`
|
|
10916
10995
|
border: none;
|
|
10917
10996
|
appearance: none;
|
|
10918
10997
|
outline: none;
|
|
@@ -10928,11 +11007,11 @@ var ColorGridOption = ({ value: rawValue, name }) => {
|
|
|
10928
11007
|
const valueAsHex = formatHex3(valueAsHsv);
|
|
10929
11008
|
const isSelected = valueAsHex === value;
|
|
10930
11009
|
const derivativeIsSelected = !isSelected && nonDerivedValueAsHex === value;
|
|
10931
|
-
return /* @__PURE__ */
|
|
11010
|
+
return /* @__PURE__ */ jsx234(
|
|
10932
11011
|
Tooltip,
|
|
10933
11012
|
{
|
|
10934
|
-
content: name ?? /* @__PURE__ */
|
|
10935
|
-
children: /* @__PURE__ */
|
|
11013
|
+
content: name ?? /* @__PURE__ */ jsx234("span", { style: { fontFamily: "var(--wui-typography-family-mono)" }, children: value }),
|
|
11014
|
+
children: /* @__PURE__ */ jsx234(
|
|
10936
11015
|
Container2,
|
|
10937
11016
|
{
|
|
10938
11017
|
"aria-label": value,
|
|
@@ -10940,7 +11019,7 @@ var ColorGridOption = ({ value: rawValue, name }) => {
|
|
|
10940
11019
|
role: "option",
|
|
10941
11020
|
tabIndex: -1,
|
|
10942
11021
|
value,
|
|
10943
|
-
children: /* @__PURE__ */
|
|
11022
|
+
children: /* @__PURE__ */ jsx234(
|
|
10944
11023
|
ColorSwatch,
|
|
10945
11024
|
{
|
|
10946
11025
|
derivativeIsSelected,
|
|
@@ -10957,10 +11036,10 @@ ColorGridOption.displayName = "ColorGridOption_UI";
|
|
|
10957
11036
|
|
|
10958
11037
|
// src/components/ColorPicker/ColorList.tsx
|
|
10959
11038
|
import { useCallback as useCallback11 } from "react";
|
|
10960
|
-
import { styled as
|
|
11039
|
+
import { styled as styled37 } from "styled-components";
|
|
10961
11040
|
import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
|
|
10962
|
-
import { jsx as
|
|
10963
|
-
var Container3 =
|
|
11041
|
+
import { jsx as jsx235 } from "react/jsx-runtime";
|
|
11042
|
+
var Container3 = styled37(ToggleGroupRoot)`
|
|
10964
11043
|
display: grid;
|
|
10965
11044
|
grid-template-columns: minmax(0, 1fr);
|
|
10966
11045
|
`;
|
|
@@ -10976,7 +11055,7 @@ var ColorList = ({ children }) => {
|
|
|
10976
11055
|
},
|
|
10977
11056
|
[onChangeNonDerivedValueAsHsv]
|
|
10978
11057
|
);
|
|
10979
|
-
return /* @__PURE__ */
|
|
11058
|
+
return /* @__PURE__ */ jsx235(
|
|
10980
11059
|
Container3,
|
|
10981
11060
|
{
|
|
10982
11061
|
onValueChange,
|
|
@@ -10989,18 +11068,18 @@ var ColorList = ({ children }) => {
|
|
|
10989
11068
|
ColorList.displayName = "ColorList_UI";
|
|
10990
11069
|
|
|
10991
11070
|
// src/components/ColorPicker/ColorListGroup.tsx
|
|
10992
|
-
import { styled as
|
|
10993
|
-
import { jsx as
|
|
10994
|
-
var Container4 =
|
|
11071
|
+
import { styled as styled38 } from "styled-components";
|
|
11072
|
+
import { jsx as jsx236, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
11073
|
+
var Container4 = styled38.div`
|
|
10995
11074
|
display: grid;
|
|
10996
11075
|
gap: var(--wui-space-01);
|
|
10997
11076
|
grid-template-columns: minmax(0, 1fr);
|
|
10998
11077
|
`;
|
|
10999
|
-
var ItemsContainer2 =
|
|
11078
|
+
var ItemsContainer2 = styled38.div`
|
|
11000
11079
|
display: flex;
|
|
11001
11080
|
flex-direction: column;
|
|
11002
11081
|
`;
|
|
11003
|
-
var LabelContainer2 =
|
|
11082
|
+
var LabelContainer2 = styled38.div`
|
|
11004
11083
|
padding-top: var(--wui-space-01);
|
|
11005
11084
|
`;
|
|
11006
11085
|
var ColorListGroup = ({ label, children }) => {
|
|
@@ -11010,8 +11089,8 @@ var ColorListGroup = ({ label, children }) => {
|
|
|
11010
11089
|
"aria-label": label,
|
|
11011
11090
|
role: "group",
|
|
11012
11091
|
children: [
|
|
11013
|
-
/* @__PURE__ */
|
|
11014
|
-
/* @__PURE__ */
|
|
11092
|
+
/* @__PURE__ */ jsx236(LabelContainer2, { children: /* @__PURE__ */ jsx236(Label, { children: label }) }),
|
|
11093
|
+
/* @__PURE__ */ jsx236(ItemsContainer2, { children })
|
|
11015
11094
|
]
|
|
11016
11095
|
}
|
|
11017
11096
|
);
|
|
@@ -11019,12 +11098,12 @@ var ColorListGroup = ({ label, children }) => {
|
|
|
11019
11098
|
ColorListGroup.displayName = "ColorListGroup_UI";
|
|
11020
11099
|
|
|
11021
11100
|
// src/components/ColorPicker/ColorListOption.tsx
|
|
11022
|
-
import { styled as
|
|
11101
|
+
import { styled as styled39 } from "styled-components";
|
|
11023
11102
|
import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
11024
11103
|
import { formatHex as formatHex4 } from "culori/fn";
|
|
11025
11104
|
|
|
11026
11105
|
// src/components/ColorPicker/ColorNameOrHexCode.tsx
|
|
11027
|
-
import { jsx as
|
|
11106
|
+
import { jsx as jsx237, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
11028
11107
|
var ColorNameOrHexCode = ({ name, hexCode }) => {
|
|
11029
11108
|
return /* @__PURE__ */ jsxs24(
|
|
11030
11109
|
Box,
|
|
@@ -11034,7 +11113,7 @@ var ColorNameOrHexCode = ({ name, hexCode }) => {
|
|
|
11034
11113
|
grow: 1,
|
|
11035
11114
|
justifyContent: "space-between",
|
|
11036
11115
|
children: [
|
|
11037
|
-
/* @__PURE__ */
|
|
11116
|
+
/* @__PURE__ */ jsx237(
|
|
11038
11117
|
Text,
|
|
11039
11118
|
{
|
|
11040
11119
|
renderAs: "span",
|
|
@@ -11042,7 +11121,7 @@ var ColorNameOrHexCode = ({ name, hexCode }) => {
|
|
|
11042
11121
|
children: name ?? hexCode
|
|
11043
11122
|
}
|
|
11044
11123
|
),
|
|
11045
|
-
name != null && /* @__PURE__ */
|
|
11124
|
+
name != null && /* @__PURE__ */ jsx237(
|
|
11046
11125
|
Text,
|
|
11047
11126
|
{
|
|
11048
11127
|
prominence: "secondary",
|
|
@@ -11057,8 +11136,8 @@ var ColorNameOrHexCode = ({ name, hexCode }) => {
|
|
|
11057
11136
|
};
|
|
11058
11137
|
|
|
11059
11138
|
// src/components/ColorPicker/ColorListOption.tsx
|
|
11060
|
-
import { jsx as
|
|
11061
|
-
var Container5 =
|
|
11139
|
+
import { jsx as jsx238, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
11140
|
+
var Container5 = styled39(ToggleGroupItem)`
|
|
11062
11141
|
border: none;
|
|
11063
11142
|
appearance: none;
|
|
11064
11143
|
outline: none;
|
|
@@ -11095,7 +11174,7 @@ var ColorListOption = ({ value: rawValue, name }) => {
|
|
|
11095
11174
|
tabIndex: -1,
|
|
11096
11175
|
value,
|
|
11097
11176
|
children: [
|
|
11098
|
-
/* @__PURE__ */
|
|
11177
|
+
/* @__PURE__ */ jsx238(
|
|
11099
11178
|
ColorSwatch,
|
|
11100
11179
|
{
|
|
11101
11180
|
derivativeIsSelected,
|
|
@@ -11103,7 +11182,7 @@ var ColorListOption = ({ value: rawValue, name }) => {
|
|
|
11103
11182
|
value
|
|
11104
11183
|
}
|
|
11105
11184
|
),
|
|
11106
|
-
/* @__PURE__ */
|
|
11185
|
+
/* @__PURE__ */ jsx238(
|
|
11107
11186
|
ColorNameOrHexCode,
|
|
11108
11187
|
{
|
|
11109
11188
|
hexCode: value,
|
|
@@ -11118,7 +11197,7 @@ ColorListOption.displayName = "ColorListOption_UI";
|
|
|
11118
11197
|
|
|
11119
11198
|
// src/components/ColorPicker/ColorPicker.tsx
|
|
11120
11199
|
import { Root as PopoverRoot } from "@radix-ui/react-popover";
|
|
11121
|
-
import { jsx as
|
|
11200
|
+
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
11122
11201
|
var ColorPicker = ({
|
|
11123
11202
|
children,
|
|
11124
11203
|
colorForComparison = DEFAULT_COLOR_FOR_COMPARISON,
|
|
@@ -11127,7 +11206,7 @@ var ColorPicker = ({
|
|
|
11127
11206
|
onValueChange,
|
|
11128
11207
|
value
|
|
11129
11208
|
}) => {
|
|
11130
|
-
return /* @__PURE__ */
|
|
11209
|
+
return /* @__PURE__ */ jsx239(PopoverRoot, { modal: false, children: /* @__PURE__ */ jsx239(
|
|
11131
11210
|
ColorPickerProvider,
|
|
11132
11211
|
{
|
|
11133
11212
|
colorForComparison,
|
|
@@ -11143,9 +11222,9 @@ ColorPicker.displayName = "ColorPicker_UI";
|
|
|
11143
11222
|
|
|
11144
11223
|
// src/components/ColorPicker/ColorPickerPopoverContent.tsx
|
|
11145
11224
|
import { Content as PopoverContent, Portal as PopoverPortal } from "@radix-ui/react-popover";
|
|
11146
|
-
import { styled as
|
|
11147
|
-
import { jsx as
|
|
11148
|
-
var StyledPopoverContent =
|
|
11225
|
+
import { styled as styled40 } from "styled-components";
|
|
11226
|
+
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
11227
|
+
var StyledPopoverContent = styled40(PopoverContent)`
|
|
11149
11228
|
background-color: var(--wui-color-bg-surface);
|
|
11150
11229
|
border-radius: var(--wui-border-radius-02);
|
|
11151
11230
|
border: 1px solid var(--wui-color-border);
|
|
@@ -11160,7 +11239,7 @@ var StyledPopoverContent = styled39(PopoverContent)`
|
|
|
11160
11239
|
var ColorPickerPopoverContent = ({
|
|
11161
11240
|
children
|
|
11162
11241
|
}) => {
|
|
11163
|
-
return /* @__PURE__ */
|
|
11242
|
+
return /* @__PURE__ */ jsx240(PopoverPortal, { children: /* @__PURE__ */ jsx240(
|
|
11164
11243
|
StyledPopoverContent,
|
|
11165
11244
|
{
|
|
11166
11245
|
align: "start",
|
|
@@ -11172,28 +11251,28 @@ var ColorPickerPopoverContent = ({
|
|
|
11172
11251
|
ColorPickerPopoverContent.displayName = "ColorPickerPopoverContent_UI";
|
|
11173
11252
|
|
|
11174
11253
|
// src/components/ColorPicker/ColorPickerSection.tsx
|
|
11175
|
-
import { styled as
|
|
11176
|
-
import { jsx as
|
|
11177
|
-
var Container6 =
|
|
11254
|
+
import { styled as styled41 } from "styled-components";
|
|
11255
|
+
import { jsx as jsx241 } from "react/jsx-runtime";
|
|
11256
|
+
var Container6 = styled41.div`
|
|
11178
11257
|
padding: var(--wui-space-02);
|
|
11179
11258
|
`;
|
|
11180
11259
|
var ColorPickerSection = ({ children }) => {
|
|
11181
|
-
return /* @__PURE__ */
|
|
11260
|
+
return /* @__PURE__ */ jsx241(Container6, { children: /* @__PURE__ */ jsx241(Stack, { children }) });
|
|
11182
11261
|
};
|
|
11183
11262
|
ColorPickerSection.displayName = "ColorPickerSection_UI";
|
|
11184
11263
|
|
|
11185
11264
|
// src/components/ColorPicker/ColorPickerTrigger.tsx
|
|
11186
11265
|
import { forwardRef as forwardRef13 } from "react";
|
|
11187
11266
|
import { Trigger as PopoverTrigger } from "@radix-ui/react-popover";
|
|
11188
|
-
import { styled as
|
|
11267
|
+
import { styled as styled42 } from "styled-components";
|
|
11189
11268
|
|
|
11190
11269
|
// src/components/ColorPicker/ValueSwatch.tsx
|
|
11191
|
-
import { jsx as
|
|
11270
|
+
import { jsx as jsx242 } from "react/jsx-runtime";
|
|
11192
11271
|
var ValueSwatch = ({
|
|
11193
11272
|
diameterPx = DEFAULT_SWATCH_DIAMETER_PX
|
|
11194
11273
|
}) => {
|
|
11195
11274
|
const { valueAsHex } = useColorPickerState();
|
|
11196
|
-
return /* @__PURE__ */
|
|
11275
|
+
return /* @__PURE__ */ jsx242(
|
|
11197
11276
|
ColorSwatch,
|
|
11198
11277
|
{
|
|
11199
11278
|
diameterPx,
|
|
@@ -11204,16 +11283,16 @@ var ValueSwatch = ({
|
|
|
11204
11283
|
ValueSwatch.displayName = "ValueSwatch_UI";
|
|
11205
11284
|
|
|
11206
11285
|
// src/components/ColorPicker/ValueNameOrHexCode.tsx
|
|
11207
|
-
import { jsx as
|
|
11286
|
+
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
11208
11287
|
var ValueNameOrHexCode = () => {
|
|
11209
11288
|
const { valueAsHex } = useColorPickerState();
|
|
11210
|
-
return /* @__PURE__ */
|
|
11289
|
+
return /* @__PURE__ */ jsx243(ColorNameOrHexCode, { hexCode: valueAsHex });
|
|
11211
11290
|
};
|
|
11212
11291
|
ValueNameOrHexCode.displayName = "ValueNameOrHexCode_UI";
|
|
11213
11292
|
|
|
11214
11293
|
// src/components/ColorPicker/ColorPickerTrigger.tsx
|
|
11215
|
-
import { jsx as
|
|
11216
|
-
var StyledPopoverTrigger =
|
|
11294
|
+
import { jsx as jsx244, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
11295
|
+
var StyledPopoverTrigger = styled42(PopoverTrigger)`
|
|
11217
11296
|
background-color: var(--wui-color-bg-surface);
|
|
11218
11297
|
border-radius: var(--wui-border-radius-rounded);
|
|
11219
11298
|
border: 1px solid var(--wui-color-border);
|
|
@@ -11224,7 +11303,7 @@ var StyledPopoverTrigger = styled41(PopoverTrigger)`
|
|
|
11224
11303
|
background-color: var(--wui-color-bg-surface-hover);
|
|
11225
11304
|
}
|
|
11226
11305
|
`;
|
|
11227
|
-
var DefaultTriggerContentContainer =
|
|
11306
|
+
var DefaultTriggerContentContainer = styled42.div`
|
|
11228
11307
|
align-items: center;
|
|
11229
11308
|
display: flex;
|
|
11230
11309
|
flex-direction: row;
|
|
@@ -11233,18 +11312,18 @@ var DefaultTriggerContentContainer = styled41.div`
|
|
|
11233
11312
|
`;
|
|
11234
11313
|
var DefaultTriggerContent = () => {
|
|
11235
11314
|
return /* @__PURE__ */ jsxs26(DefaultTriggerContentContainer, { children: [
|
|
11236
|
-
/* @__PURE__ */
|
|
11237
|
-
/* @__PURE__ */
|
|
11315
|
+
/* @__PURE__ */ jsx244(ValueSwatch, {}),
|
|
11316
|
+
/* @__PURE__ */ jsx244(ValueNameOrHexCode, {})
|
|
11238
11317
|
] });
|
|
11239
11318
|
};
|
|
11240
11319
|
var ColorPickerTrigger = forwardRef13(
|
|
11241
11320
|
({ children, ...props }, forwardedRef) => {
|
|
11242
|
-
return /* @__PURE__ */
|
|
11321
|
+
return /* @__PURE__ */ jsx244(
|
|
11243
11322
|
StyledPopoverTrigger,
|
|
11244
11323
|
{
|
|
11245
11324
|
ref: forwardedRef,
|
|
11246
11325
|
...props,
|
|
11247
|
-
children: children ?? /* @__PURE__ */
|
|
11326
|
+
children: children ?? /* @__PURE__ */ jsx244(DefaultTriggerContent, {})
|
|
11248
11327
|
}
|
|
11249
11328
|
);
|
|
11250
11329
|
}
|
|
@@ -11252,9 +11331,9 @@ var ColorPickerTrigger = forwardRef13(
|
|
|
11252
11331
|
ColorPickerTrigger.displayName = "ColorPickerTrigger_UI";
|
|
11253
11332
|
|
|
11254
11333
|
// src/components/ColorPicker/ContrastIndicator.tsx
|
|
11255
|
-
import { styled as
|
|
11256
|
-
import { jsx as
|
|
11257
|
-
var Container7 =
|
|
11334
|
+
import { styled as styled43 } from "styled-components";
|
|
11335
|
+
import { jsx as jsx245, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
11336
|
+
var Container7 = styled43.div`
|
|
11258
11337
|
display: flex;
|
|
11259
11338
|
flex-direction: row;
|
|
11260
11339
|
justify-content: end;
|
|
@@ -11267,7 +11346,7 @@ var ContrastIndicator = () => {
|
|
|
11267
11346
|
const { currentContrastRatio, minimumContrastRatio } = useColorPickerState();
|
|
11268
11347
|
const isContrastSufficient = currentContrastRatio >= minimumContrastRatio;
|
|
11269
11348
|
const label = /* @__PURE__ */ jsxs27("div", { children: [
|
|
11270
|
-
/* @__PURE__ */
|
|
11349
|
+
/* @__PURE__ */ jsx245(
|
|
11271
11350
|
Text,
|
|
11272
11351
|
{
|
|
11273
11352
|
renderAs: "span",
|
|
@@ -11288,19 +11367,19 @@ var ContrastIndicator = () => {
|
|
|
11288
11367
|
}
|
|
11289
11368
|
)
|
|
11290
11369
|
] });
|
|
11291
|
-
return /* @__PURE__ */
|
|
11370
|
+
return /* @__PURE__ */ jsx245(Container7, { children: isContrastSufficient ? /* @__PURE__ */ jsx245(
|
|
11292
11371
|
Badge,
|
|
11293
11372
|
{
|
|
11294
11373
|
colorScheme: "success",
|
|
11295
|
-
icon: /* @__PURE__ */
|
|
11374
|
+
icon: /* @__PURE__ */ jsx245(Icon, { type: "checkmark" }),
|
|
11296
11375
|
label,
|
|
11297
11376
|
variant: "outline"
|
|
11298
11377
|
}
|
|
11299
|
-
) : /* @__PURE__ */
|
|
11378
|
+
) : /* @__PURE__ */ jsx245(
|
|
11300
11379
|
Badge,
|
|
11301
11380
|
{
|
|
11302
11381
|
colorScheme: "warning",
|
|
11303
|
-
icon: /* @__PURE__ */
|
|
11382
|
+
icon: /* @__PURE__ */ jsx245(Icon, { type: "error" }),
|
|
11304
11383
|
label,
|
|
11305
11384
|
variant: "outline"
|
|
11306
11385
|
}
|
|
@@ -11312,9 +11391,9 @@ import { useCallback as useCallback12 } from "react";
|
|
|
11312
11391
|
|
|
11313
11392
|
// src/components/Switch/Switch.tsx
|
|
11314
11393
|
import { forwardRef as forwardRef14, useId as useId3 } from "react";
|
|
11315
|
-
import { styled as
|
|
11394
|
+
import { styled as styled44, css as css28 } from "styled-components";
|
|
11316
11395
|
import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
11317
|
-
import { jsx as
|
|
11396
|
+
import { jsx as jsx246, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
11318
11397
|
var switchHeightMap = {
|
|
11319
11398
|
sm: 16,
|
|
11320
11399
|
md: 20,
|
|
@@ -11323,7 +11402,7 @@ var switchHeightMap = {
|
|
|
11323
11402
|
var getSizeCss2 = (size) => css28`
|
|
11324
11403
|
--wui-switch-height: ${switchHeightMap[size]}px;
|
|
11325
11404
|
`;
|
|
11326
|
-
var StyledSwitchWrapper =
|
|
11405
|
+
var StyledSwitchWrapper = styled44.div`
|
|
11327
11406
|
${({ $size }) => getSizeCss2($size)}
|
|
11328
11407
|
--wui-switch-border-offset: 2px;
|
|
11329
11408
|
--wui-switch-background-color: var(--wui-color-bg-surface-tertiary);
|
|
@@ -11357,7 +11436,7 @@ var StyledSwitchWrapper = styled43.div`
|
|
|
11357
11436
|
/* TODO this solves a problem but potentially causes and a11y issue */
|
|
11358
11437
|
user-select: none;
|
|
11359
11438
|
`;
|
|
11360
|
-
var StyledSwitchTrack =
|
|
11439
|
+
var StyledSwitchTrack = styled44.div`
|
|
11361
11440
|
width: var(--wui-switch-width);
|
|
11362
11441
|
height: var(--wui-switch-height);
|
|
11363
11442
|
min-width: var(--wui-switch-width);
|
|
@@ -11375,7 +11454,7 @@ var StyledSwitchTrack = styled43.div`
|
|
|
11375
11454
|
background-color: var(--wui-switch-background-color);
|
|
11376
11455
|
margin-top: calc(calc(1lh - var(--wui-switch-height)) / 2);
|
|
11377
11456
|
`;
|
|
11378
|
-
var StyledSwitchThumb =
|
|
11457
|
+
var StyledSwitchThumb = styled44.div`
|
|
11379
11458
|
border-radius: var(--wui-border-radius-rounded);
|
|
11380
11459
|
background-color: var(--wui-switch-thumb-color);
|
|
11381
11460
|
transition:
|
|
@@ -11385,7 +11464,7 @@ var StyledSwitchThumb = styled43.div`
|
|
|
11385
11464
|
height: var(--wui-switch-thumb-size);
|
|
11386
11465
|
margin-left: var(--wui-switch-thumb-position);
|
|
11387
11466
|
`;
|
|
11388
|
-
var StyledHiddenSwitchInput =
|
|
11467
|
+
var StyledHiddenSwitchInput = styled44.input`
|
|
11389
11468
|
${visuallyHiddenStyle}
|
|
11390
11469
|
`;
|
|
11391
11470
|
var Switch = forwardRef14(
|
|
@@ -11413,7 +11492,7 @@ var Switch = forwardRef14(
|
|
|
11413
11492
|
$hideLabel: hideLabel,
|
|
11414
11493
|
$size: size,
|
|
11415
11494
|
children: [
|
|
11416
|
-
/* @__PURE__ */
|
|
11495
|
+
/* @__PURE__ */ jsx246(
|
|
11417
11496
|
StyledHiddenSwitchInput,
|
|
11418
11497
|
{
|
|
11419
11498
|
...props,
|
|
@@ -11428,16 +11507,16 @@ var Switch = forwardRef14(
|
|
|
11428
11507
|
value
|
|
11429
11508
|
}
|
|
11430
11509
|
),
|
|
11431
|
-
/* @__PURE__ */
|
|
11510
|
+
/* @__PURE__ */ jsx246(
|
|
11432
11511
|
FormControlLabel,
|
|
11433
11512
|
{
|
|
11434
11513
|
align,
|
|
11435
|
-
controlSlot: /* @__PURE__ */
|
|
11514
|
+
controlSlot: /* @__PURE__ */ jsx246(
|
|
11436
11515
|
StyledSwitchTrack,
|
|
11437
11516
|
{
|
|
11438
11517
|
"data-testid": "wui-faux-input",
|
|
11439
11518
|
"data-wui-faux-input": "true",
|
|
11440
|
-
children: /* @__PURE__ */
|
|
11519
|
+
children: /* @__PURE__ */ jsx246(StyledSwitchThumb, {})
|
|
11441
11520
|
}
|
|
11442
11521
|
),
|
|
11443
11522
|
description,
|
|
@@ -11455,7 +11534,7 @@ var Switch = forwardRef14(
|
|
|
11455
11534
|
Switch.displayName = "Switch_UI";
|
|
11456
11535
|
|
|
11457
11536
|
// src/components/ColorPicker/ContrastEnforcerSwitch.tsx
|
|
11458
|
-
import { jsx as
|
|
11537
|
+
import { jsx as jsx247 } from "react/jsx-runtime";
|
|
11459
11538
|
var ContrastEnforcerSwitch = () => {
|
|
11460
11539
|
const { setShouldEnforceMinContrast, shouldEnforceMinContrast, hasAccessibleDerivatives: hasAccessibleDerivatives2 } = useColorPickerState();
|
|
11461
11540
|
const onChangeContrastLimitedSwitch = useCallback12(
|
|
@@ -11471,7 +11550,7 @@ var ContrastEnforcerSwitch = () => {
|
|
|
11471
11550
|
if (!hasAccessibleDerivatives2) {
|
|
11472
11551
|
return null;
|
|
11473
11552
|
}
|
|
11474
|
-
return /* @__PURE__ */
|
|
11553
|
+
return /* @__PURE__ */ jsx247(
|
|
11475
11554
|
Switch,
|
|
11476
11555
|
{
|
|
11477
11556
|
align: "right",
|
|
@@ -11483,21 +11562,21 @@ var ContrastEnforcerSwitch = () => {
|
|
|
11483
11562
|
};
|
|
11484
11563
|
|
|
11485
11564
|
// src/components/ColorPicker/ContrastPreview.tsx
|
|
11486
|
-
import { jsx as
|
|
11565
|
+
import { jsx as jsx248 } from "react/jsx-runtime";
|
|
11487
11566
|
var ContrastPreview = () => {
|
|
11488
11567
|
const { valueAsHex, colorForComparison } = useColorPickerState();
|
|
11489
|
-
return /* @__PURE__ */
|
|
11568
|
+
return /* @__PURE__ */ jsx248(
|
|
11490
11569
|
ColorSwatch,
|
|
11491
11570
|
{
|
|
11492
11571
|
diameterPx: 36,
|
|
11493
11572
|
value: valueAsHex,
|
|
11494
|
-
children: /* @__PURE__ */
|
|
11573
|
+
children: /* @__PURE__ */ jsx248(Text, { style: { color: colorForComparison }, children: "Aa" })
|
|
11495
11574
|
}
|
|
11496
11575
|
);
|
|
11497
11576
|
};
|
|
11498
11577
|
|
|
11499
11578
|
// src/components/ColorPicker/ContrastControls.tsx
|
|
11500
|
-
import { jsx as
|
|
11579
|
+
import { jsx as jsx249, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
11501
11580
|
var ContrastControls = () => {
|
|
11502
11581
|
return /* @__PURE__ */ jsxs29(Stack, { children: [
|
|
11503
11582
|
/* @__PURE__ */ jsxs29(
|
|
@@ -11507,12 +11586,12 @@ var ContrastControls = () => {
|
|
|
11507
11586
|
direction: "row",
|
|
11508
11587
|
justifyContent: "space-between",
|
|
11509
11588
|
children: [
|
|
11510
|
-
/* @__PURE__ */
|
|
11511
|
-
/* @__PURE__ */
|
|
11589
|
+
/* @__PURE__ */ jsx249(ContrastPreview, {}),
|
|
11590
|
+
/* @__PURE__ */ jsx249(ContrastIndicator, {})
|
|
11512
11591
|
]
|
|
11513
11592
|
}
|
|
11514
11593
|
),
|
|
11515
|
-
/* @__PURE__ */
|
|
11594
|
+
/* @__PURE__ */ jsx249(ContrastEnforcerSwitch, {})
|
|
11516
11595
|
] });
|
|
11517
11596
|
};
|
|
11518
11597
|
ContrastControls.displayName = "ContrastControls_UI";
|
|
@@ -11523,7 +11602,7 @@ import { parseHex as parseHex2 } from "culori/fn";
|
|
|
11523
11602
|
|
|
11524
11603
|
// src/components/Input/Input.tsx
|
|
11525
11604
|
import { isValidElement as isValidElement2, forwardRef as forwardRef15, cloneElement as cloneElement4, useRef as useRef9 } from "react";
|
|
11526
|
-
import { styled as
|
|
11605
|
+
import { styled as styled45, css as css30 } from "styled-components";
|
|
11527
11606
|
import { isNil as isNil14, isNotNil as isNotNil18, isRecord as isRecord4 } from "@wistia/type-guards";
|
|
11528
11607
|
|
|
11529
11608
|
// src/css/inputCss.ts
|
|
@@ -11554,7 +11633,7 @@ var inputCss = css29`
|
|
|
11554
11633
|
`;
|
|
11555
11634
|
|
|
11556
11635
|
// src/components/Input/Input.tsx
|
|
11557
|
-
import { jsx as
|
|
11636
|
+
import { jsx as jsx250, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
11558
11637
|
var inputStyles = css30`
|
|
11559
11638
|
${inputCss}
|
|
11560
11639
|
input,
|
|
@@ -11596,7 +11675,7 @@ var inputStyles = css30`
|
|
|
11596
11675
|
}
|
|
11597
11676
|
`;
|
|
11598
11677
|
var calculateTextareaHeight = (rows = 1) => `calc((var(--wui-input-line-height) * ${rows}) + (var(--wui-input-vertical-padding) * 2));`;
|
|
11599
|
-
var StyledInputContainer =
|
|
11678
|
+
var StyledInputContainer = styled45.div`
|
|
11600
11679
|
display: inline-flex;
|
|
11601
11680
|
position: relative;
|
|
11602
11681
|
${inputStyles};
|
|
@@ -11721,7 +11800,7 @@ var Input = forwardRef15(
|
|
|
11721
11800
|
const ref = isNotNil18(externalRef) && isRecord4(externalRef) && "current" in externalRef ? externalRef : internalRef;
|
|
11722
11801
|
let leftIconToDisplay = leftIcon;
|
|
11723
11802
|
if (isNil14(leftIcon) && type === "search") {
|
|
11724
|
-
leftIconToDisplay = /* @__PURE__ */
|
|
11803
|
+
leftIconToDisplay = /* @__PURE__ */ jsx250(Icon, { type: "search" });
|
|
11725
11804
|
}
|
|
11726
11805
|
if (isNotNil18(leftIconToDisplay) && isValidElement2(leftIconToDisplay)) {
|
|
11727
11806
|
leftIconToDisplay = cloneElement4(leftIconToDisplay, {
|
|
@@ -11756,14 +11835,14 @@ var Input = forwardRef15(
|
|
|
11756
11835
|
"data-wui-input-container": true,
|
|
11757
11836
|
children: [
|
|
11758
11837
|
leftIconToDisplay ?? null,
|
|
11759
|
-
type === "multiline" ? /* @__PURE__ */
|
|
11838
|
+
type === "multiline" ? /* @__PURE__ */ jsx250(
|
|
11760
11839
|
"textarea",
|
|
11761
11840
|
{
|
|
11762
11841
|
...props,
|
|
11763
11842
|
ref,
|
|
11764
11843
|
onFocus: handleFocus2
|
|
11765
11844
|
}
|
|
11766
|
-
) : /* @__PURE__ */
|
|
11845
|
+
) : /* @__PURE__ */ jsx250(
|
|
11767
11846
|
"input",
|
|
11768
11847
|
{
|
|
11769
11848
|
...props,
|
|
@@ -11781,7 +11860,7 @@ var Input = forwardRef15(
|
|
|
11781
11860
|
Input.displayName = "Input_UI";
|
|
11782
11861
|
|
|
11783
11862
|
// src/components/ColorPicker/HexColorInput.tsx
|
|
11784
|
-
import { jsx as
|
|
11863
|
+
import { jsx as jsx251 } from "react/jsx-runtime";
|
|
11785
11864
|
var SIX_DIGIT_HEX_CODE_LENGTH = 7;
|
|
11786
11865
|
var isValidHexChar = (char) => {
|
|
11787
11866
|
return /^[0-9a-fA-F]$/.test(char);
|
|
@@ -11921,7 +12000,7 @@ var HexColorInput = ({ autoFocus = true }) => {
|
|
|
11921
12000
|
useEffect11(() => {
|
|
11922
12001
|
setTextInputValue(valueAsHex);
|
|
11923
12002
|
}, [valueAsHex]);
|
|
11924
|
-
return /* @__PURE__ */
|
|
12003
|
+
return /* @__PURE__ */ jsx251(
|
|
11925
12004
|
Input,
|
|
11926
12005
|
{
|
|
11927
12006
|
ref: inputRef,
|
|
@@ -11950,15 +12029,15 @@ import {
|
|
|
11950
12029
|
Track as SliderTrack,
|
|
11951
12030
|
Thumb as SliderThumb
|
|
11952
12031
|
} from "@radix-ui/react-slider";
|
|
11953
|
-
import { styled as
|
|
12032
|
+
import { styled as styled47 } from "styled-components";
|
|
11954
12033
|
import { formatHex as formatHex6 } from "culori/fn";
|
|
11955
12034
|
|
|
11956
12035
|
// src/components/ColorPicker/HSVHueCanvas.tsx
|
|
11957
12036
|
import { useEffect as useEffect12, useRef as useRef11 } from "react";
|
|
11958
|
-
import { styled as
|
|
12037
|
+
import { styled as styled46 } from "styled-components";
|
|
11959
12038
|
import { formatHex as formatHex5 } from "culori/fn";
|
|
11960
|
-
import { jsx as
|
|
11961
|
-
var Canvas =
|
|
12039
|
+
import { jsx as jsx252 } from "react/jsx-runtime";
|
|
12040
|
+
var Canvas = styled46.canvas`
|
|
11962
12041
|
display: block;
|
|
11963
12042
|
height: 100%;
|
|
11964
12043
|
width: 100%;
|
|
@@ -11986,7 +12065,7 @@ var HSVHueCanvas = ({ hsv }) => {
|
|
|
11986
12065
|
ctx.fillStyle = gradient;
|
|
11987
12066
|
ctx.fillRect(0, 0, width, height);
|
|
11988
12067
|
}, [hsv.s, hsv.v]);
|
|
11989
|
-
return /* @__PURE__ */
|
|
12068
|
+
return /* @__PURE__ */ jsx252(
|
|
11990
12069
|
Canvas,
|
|
11991
12070
|
{
|
|
11992
12071
|
ref: canvasRef,
|
|
@@ -11996,9 +12075,9 @@ var HSVHueCanvas = ({ hsv }) => {
|
|
|
11996
12075
|
};
|
|
11997
12076
|
|
|
11998
12077
|
// src/components/ColorPicker/HueSlider.tsx
|
|
11999
|
-
import { jsx as
|
|
12078
|
+
import { jsx as jsx253, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
12000
12079
|
var TWENTY_FOUR = 24;
|
|
12001
|
-
var Container8 =
|
|
12080
|
+
var Container8 = styled47.div`
|
|
12002
12081
|
border-radius: var(--wui-border-radius-rounded);
|
|
12003
12082
|
border: 1px solid var(--wui-color-border);
|
|
12004
12083
|
height: ${TWENTY_FOUR}px;
|
|
@@ -12006,7 +12085,7 @@ var Container8 = styled46.div`
|
|
|
12006
12085
|
padding: 0 var(--wui-space-03);
|
|
12007
12086
|
position: relative;
|
|
12008
12087
|
`;
|
|
12009
|
-
var Root =
|
|
12088
|
+
var Root = styled47(SliderRoot)`
|
|
12010
12089
|
align-items: center;
|
|
12011
12090
|
display: flex;
|
|
12012
12091
|
position: absolute;
|
|
@@ -12015,11 +12094,11 @@ var Root = styled46(SliderRoot)`
|
|
|
12015
12094
|
width: calc(100% - var(--wui-space-05));
|
|
12016
12095
|
height: 16px;
|
|
12017
12096
|
`;
|
|
12018
|
-
var Track =
|
|
12097
|
+
var Track = styled47(SliderTrack)`
|
|
12019
12098
|
width: 100%;
|
|
12020
12099
|
`;
|
|
12021
|
-
var Thumb =
|
|
12022
|
-
var ThumbInner =
|
|
12100
|
+
var Thumb = styled47(SliderThumb)``;
|
|
12101
|
+
var ThumbInner = styled47.div`
|
|
12023
12102
|
cursor: pointer;
|
|
12024
12103
|
display: block;
|
|
12025
12104
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -12074,23 +12153,23 @@ var HueSlider = () => {
|
|
|
12074
12153
|
step: 1,
|
|
12075
12154
|
value: [nonDerivedValueAsHsv.h ?? 0],
|
|
12076
12155
|
children: [
|
|
12077
|
-
/* @__PURE__ */
|
|
12078
|
-
/* @__PURE__ */
|
|
12156
|
+
/* @__PURE__ */ jsx253(Track, {}),
|
|
12157
|
+
/* @__PURE__ */ jsx253(Thumb, { "aria-label": "Hue slider", children: /* @__PURE__ */ jsx253(ThumbInner, { style: thumbInnerStyle }) })
|
|
12079
12158
|
]
|
|
12080
12159
|
}
|
|
12081
12160
|
),
|
|
12082
|
-
/* @__PURE__ */
|
|
12161
|
+
/* @__PURE__ */ jsx253(HSVHueCanvas, { hsv: valueAsHsv })
|
|
12083
12162
|
] });
|
|
12084
12163
|
};
|
|
12085
12164
|
HueSlider.displayName = "HueSlider_UI";
|
|
12086
12165
|
|
|
12087
12166
|
// src/components/ColorPicker/SaturationAndValuePicker.tsx
|
|
12088
12167
|
import { useCallback as useCallback15, useEffect as useEffect14, useLayoutEffect as useLayoutEffect4, useMemo as useMemo10, useRef as useRef13, useState as useState14 } from "react";
|
|
12089
|
-
import { styled as
|
|
12168
|
+
import { styled as styled49 } from "styled-components";
|
|
12090
12169
|
|
|
12091
12170
|
// src/components/ColorPicker/HSVSaturationValueCanvas.tsx
|
|
12092
12171
|
import { useEffect as useEffect13, useRef as useRef12 } from "react";
|
|
12093
|
-
import { styled as
|
|
12172
|
+
import { styled as styled48 } from "styled-components";
|
|
12094
12173
|
|
|
12095
12174
|
// src/components/ColorPicker/canvas-utils.ts
|
|
12096
12175
|
var drawSmoothCurve = (context, points) => {
|
|
@@ -12119,8 +12198,8 @@ var drawSmoothCurve = (context, points) => {
|
|
|
12119
12198
|
};
|
|
12120
12199
|
|
|
12121
12200
|
// src/components/ColorPicker/HSVSaturationValueCanvas.tsx
|
|
12122
|
-
import { jsx as
|
|
12123
|
-
var Canvas2 =
|
|
12201
|
+
import { jsx as jsx254 } from "react/jsx-runtime";
|
|
12202
|
+
var Canvas2 = styled48.canvas`
|
|
12124
12203
|
display: block;
|
|
12125
12204
|
width: 100%;
|
|
12126
12205
|
`;
|
|
@@ -12227,7 +12306,7 @@ var HSVSaturationValueCanvas = ({
|
|
|
12227
12306
|
colorForComparison,
|
|
12228
12307
|
opacityForContrastCalculation
|
|
12229
12308
|
]);
|
|
12230
|
-
return /* @__PURE__ */
|
|
12309
|
+
return /* @__PURE__ */ jsx254(
|
|
12231
12310
|
Canvas2,
|
|
12232
12311
|
{
|
|
12233
12312
|
ref: canvasRef,
|
|
@@ -12238,16 +12317,16 @@ var HSVSaturationValueCanvas = ({
|
|
|
12238
12317
|
};
|
|
12239
12318
|
|
|
12240
12319
|
// src/components/ColorPicker/SaturationAndValuePicker.tsx
|
|
12241
|
-
import { jsx as
|
|
12320
|
+
import { jsx as jsx255, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
12242
12321
|
var SATURATION_NUDGE = 0.02;
|
|
12243
12322
|
var VALUE_NUDGE = 0.02;
|
|
12244
|
-
var Container9 =
|
|
12323
|
+
var Container9 = styled49.div`
|
|
12245
12324
|
border-radius: var(--wui-border-radius-02);
|
|
12246
12325
|
box-shadow: 0 0 0 1px var(--wui-color-border);
|
|
12247
12326
|
overflow: hidden;
|
|
12248
12327
|
position: relative;
|
|
12249
12328
|
`;
|
|
12250
|
-
var Thumb2 =
|
|
12329
|
+
var Thumb2 = styled49.button.attrs({ type: "button" })`
|
|
12251
12330
|
appearance: none;
|
|
12252
12331
|
border-radius: var(--wui-border-radius-rounded);
|
|
12253
12332
|
border: none;
|
|
@@ -12415,7 +12494,7 @@ var SaturationAndValuePicker = ({
|
|
|
12415
12494
|
"data-testid": dataTestId,
|
|
12416
12495
|
onMouseDown: onContainerMouseDown,
|
|
12417
12496
|
children: [
|
|
12418
|
-
/* @__PURE__ */
|
|
12497
|
+
/* @__PURE__ */ jsx255(
|
|
12419
12498
|
Thumb2,
|
|
12420
12499
|
{
|
|
12421
12500
|
ref: thumbRef,
|
|
@@ -12427,7 +12506,7 @@ var SaturationAndValuePicker = ({
|
|
|
12427
12506
|
tabIndex: 0
|
|
12428
12507
|
}
|
|
12429
12508
|
),
|
|
12430
|
-
/* @__PURE__ */
|
|
12509
|
+
/* @__PURE__ */ jsx255(
|
|
12431
12510
|
HSVSaturationValueCanvas,
|
|
12432
12511
|
{
|
|
12433
12512
|
colorForComparison,
|
|
@@ -12437,7 +12516,7 @@ var SaturationAndValuePicker = ({
|
|
|
12437
12516
|
shouldShowContrastCurve: shouldEnforceMinContrast
|
|
12438
12517
|
}
|
|
12439
12518
|
),
|
|
12440
|
-
/* @__PURE__ */
|
|
12519
|
+
/* @__PURE__ */ jsx255(ScreenReaderOnly, { id: instructionsId, children: "Move right to increase saturation, left to decrease saturation, up to increase value, and down to decrease value." }),
|
|
12441
12520
|
/* @__PURE__ */ jsxs32(ScreenReaderOnly, { "aria-live": "polite", children: [
|
|
12442
12521
|
"Current color: ",
|
|
12443
12522
|
valueAsHex,
|
|
@@ -12469,15 +12548,15 @@ import {
|
|
|
12469
12548
|
isValidElement as isValidElement3
|
|
12470
12549
|
} from "react";
|
|
12471
12550
|
import { matchSorter } from "match-sorter";
|
|
12472
|
-
import { styled as
|
|
12551
|
+
import { styled as styled51 } from "styled-components";
|
|
12473
12552
|
import { isArray as isArray2, isString as isString3 } from "@wistia/type-guards";
|
|
12474
12553
|
|
|
12475
12554
|
// src/components/Tag/Tag.tsx
|
|
12476
12555
|
import { forwardRef as forwardRef16 } from "react";
|
|
12477
|
-
import { styled as
|
|
12556
|
+
import { styled as styled50 } from "styled-components";
|
|
12478
12557
|
import { isNil as isNil15, isNotNil as isNotNil19, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
|
|
12479
|
-
import { Fragment as Fragment7, jsx as
|
|
12480
|
-
var TagLabel =
|
|
12558
|
+
import { Fragment as Fragment7, jsx as jsx256, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
12559
|
+
var TagLabel = styled50.a`
|
|
12481
12560
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12482
12561
|
font-size: var(--wui-typography-label-4-size);
|
|
12483
12562
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -12513,14 +12592,14 @@ var TagLabel = styled49.a`
|
|
|
12513
12592
|
background: var(--wui-color-bg-surface-secondary-active);
|
|
12514
12593
|
}
|
|
12515
12594
|
`;
|
|
12516
|
-
var TagDivider =
|
|
12595
|
+
var TagDivider = styled50.div`
|
|
12517
12596
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12518
12597
|
border-left: 1px solid var(--wui-color-border);
|
|
12519
12598
|
display: flex;
|
|
12520
12599
|
height: 14px;
|
|
12521
12600
|
width: 1px;
|
|
12522
12601
|
`;
|
|
12523
|
-
var StyledRemoveButton =
|
|
12602
|
+
var StyledRemoveButton = styled50.button`
|
|
12524
12603
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12525
12604
|
all: unset;
|
|
12526
12605
|
cursor: pointer;
|
|
@@ -12548,7 +12627,7 @@ var StyledRemoveButton = styled49.button`
|
|
|
12548
12627
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
12549
12628
|
}
|
|
12550
12629
|
`;
|
|
12551
|
-
var StyledTag =
|
|
12630
|
+
var StyledTag = styled50.div`
|
|
12552
12631
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12553
12632
|
align-items: center;
|
|
12554
12633
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -12570,7 +12649,7 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
12570
12649
|
);
|
|
12571
12650
|
}
|
|
12572
12651
|
return /* @__PURE__ */ jsxs33(Fragment7, { children: [
|
|
12573
|
-
/* @__PURE__ */
|
|
12652
|
+
/* @__PURE__ */ jsx256(TagDivider, { $colorScheme: colorScheme }),
|
|
12574
12653
|
/* @__PURE__ */ jsxs33(
|
|
12575
12654
|
StyledRemoveButton,
|
|
12576
12655
|
{
|
|
@@ -12578,14 +12657,14 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
12578
12657
|
onClick: onClickRemove,
|
|
12579
12658
|
type: "button",
|
|
12580
12659
|
children: [
|
|
12581
|
-
/* @__PURE__ */
|
|
12660
|
+
/* @__PURE__ */ jsx256(
|
|
12582
12661
|
Icon,
|
|
12583
12662
|
{
|
|
12584
12663
|
size: "sm",
|
|
12585
12664
|
type: "close"
|
|
12586
12665
|
}
|
|
12587
12666
|
),
|
|
12588
|
-
/* @__PURE__ */
|
|
12667
|
+
/* @__PURE__ */ jsx256(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
12589
12668
|
]
|
|
12590
12669
|
}
|
|
12591
12670
|
)
|
|
@@ -12613,7 +12692,7 @@ var Tag = forwardRef16(
|
|
|
12613
12692
|
]
|
|
12614
12693
|
}
|
|
12615
12694
|
),
|
|
12616
|
-
/* @__PURE__ */
|
|
12695
|
+
/* @__PURE__ */ jsx256(
|
|
12617
12696
|
RemoveButton,
|
|
12618
12697
|
{
|
|
12619
12698
|
colorScheme,
|
|
@@ -12646,8 +12725,8 @@ var getDefaultTypographicElement = (variant) => {
|
|
|
12646
12725
|
};
|
|
12647
12726
|
|
|
12648
12727
|
// src/components/Combobox/Combobox.tsx
|
|
12649
|
-
import { jsx as
|
|
12650
|
-
var ComboboxWrapper =
|
|
12728
|
+
import { jsx as jsx257, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
12729
|
+
var ComboboxWrapper = styled51.div`
|
|
12651
12730
|
${inputCss};
|
|
12652
12731
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
12653
12732
|
padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
|
|
@@ -12696,7 +12775,7 @@ var ComboboxWrapper = styled50.div`
|
|
|
12696
12775
|
}
|
|
12697
12776
|
}
|
|
12698
12777
|
`;
|
|
12699
|
-
var ComboboxInput =
|
|
12778
|
+
var ComboboxInput = styled51(Ariakit.Combobox)`
|
|
12700
12779
|
appearance: none;
|
|
12701
12780
|
padding: 0;
|
|
12702
12781
|
width: 100%;
|
|
@@ -12711,7 +12790,7 @@ var ComboboxInput = styled50(Ariakit.Combobox)`
|
|
|
12711
12790
|
outline-width: 2px;
|
|
12712
12791
|
}
|
|
12713
12792
|
`;
|
|
12714
|
-
var ComboboxPopover2 =
|
|
12793
|
+
var ComboboxPopover2 = styled51(Ariakit.ComboboxPopover)`
|
|
12715
12794
|
--wui-combobox-content-border: var(--wui-color-border);
|
|
12716
12795
|
--wui-combobox-content-bg: var(--wui-color-bg-surface);
|
|
12717
12796
|
--wui-combobox-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -12737,7 +12816,7 @@ var ComboboxPopover2 = styled50(Ariakit.ComboboxPopover)`
|
|
|
12737
12816
|
--item-opacity: 0.5;
|
|
12738
12817
|
}
|
|
12739
12818
|
`;
|
|
12740
|
-
var ComboboxItem2 =
|
|
12819
|
+
var ComboboxItem2 = styled51(Ariakit.ComboboxItem)`
|
|
12741
12820
|
${getTypographicStyles("body3")};
|
|
12742
12821
|
display: flex;
|
|
12743
12822
|
padding: var(--wui-combobox-option-padding);
|
|
@@ -12765,12 +12844,12 @@ var ComboboxItem2 = styled50(Ariakit.ComboboxItem)`
|
|
|
12765
12844
|
background-color: transparent;
|
|
12766
12845
|
}
|
|
12767
12846
|
`;
|
|
12768
|
-
var NoResults =
|
|
12847
|
+
var NoResults = styled51.div`
|
|
12769
12848
|
gap: var(--wui-space-02);
|
|
12770
12849
|
`;
|
|
12771
12850
|
var POPOVER_WIDTH_OFFSET = 20;
|
|
12772
12851
|
var ComboboxOption = ({ value, children }) => {
|
|
12773
|
-
return /* @__PURE__ */
|
|
12852
|
+
return /* @__PURE__ */ jsx257(
|
|
12774
12853
|
ComboboxItem2,
|
|
12775
12854
|
{
|
|
12776
12855
|
className: "combobox-item",
|
|
@@ -12791,7 +12870,7 @@ var extractOptions = (children) => {
|
|
|
12791
12870
|
};
|
|
12792
12871
|
var defaultDisplayValues = (values, onRemove) => {
|
|
12793
12872
|
const valueArray = Array.isArray(values) ? values : [values];
|
|
12794
|
-
return valueArray.map((selectedValue) => /* @__PURE__ */
|
|
12873
|
+
return valueArray.map((selectedValue) => /* @__PURE__ */ jsx257(
|
|
12795
12874
|
Tag,
|
|
12796
12875
|
{
|
|
12797
12876
|
label: selectedValue,
|
|
@@ -12864,7 +12943,7 @@ var Combobox2 = ({
|
|
|
12864
12943
|
$fullWidth: fullWidth,
|
|
12865
12944
|
children: [
|
|
12866
12945
|
isMultiSelect ? displayValues(value, handleRemoveValue) : null,
|
|
12867
|
-
/* @__PURE__ */
|
|
12946
|
+
/* @__PURE__ */ jsx257(
|
|
12868
12947
|
ComboboxInput,
|
|
12869
12948
|
{
|
|
12870
12949
|
autoSelect: true,
|
|
@@ -12893,7 +12972,7 @@ var Combobox2 = ({
|
|
|
12893
12972
|
value: match,
|
|
12894
12973
|
children: [
|
|
12895
12974
|
options[match],
|
|
12896
|
-
/* @__PURE__ */
|
|
12975
|
+
/* @__PURE__ */ jsx257(
|
|
12897
12976
|
Icon,
|
|
12898
12977
|
{
|
|
12899
12978
|
size: "md",
|
|
@@ -12907,7 +12986,7 @@ var Combobox2 = ({
|
|
|
12907
12986
|
},
|
|
12908
12987
|
match
|
|
12909
12988
|
)),
|
|
12910
|
-
!matches.length && /* @__PURE__ */
|
|
12989
|
+
!matches.length && /* @__PURE__ */ jsx257(NoResults, { children: "No results found" })
|
|
12911
12990
|
]
|
|
12912
12991
|
}
|
|
12913
12992
|
)
|
|
@@ -12930,7 +13009,7 @@ import {
|
|
|
12930
13009
|
} from "@radix-ui/react-dropdown-menu";
|
|
12931
13010
|
import { isNotNil as isNotNil20, isNotUndefined as isNotUndefined9 } from "@wistia/type-guards";
|
|
12932
13011
|
import { forwardRef as forwardRef17, useMemo as useMemo12 } from "react";
|
|
12933
|
-
import { styled as
|
|
13012
|
+
import { styled as styled52, css as css32, keyframes as keyframes2 } from "styled-components";
|
|
12934
13013
|
|
|
12935
13014
|
// src/components/Menu/MenuContext.tsx
|
|
12936
13015
|
import { createContext as createContext6, useContext as useContext5 } from "react";
|
|
@@ -12938,7 +13017,7 @@ var MenuContext = createContext6({ compact: false });
|
|
|
12938
13017
|
var useMenuContext = () => useContext5(MenuContext);
|
|
12939
13018
|
|
|
12940
13019
|
// src/components/Menu/Menu.tsx
|
|
12941
|
-
import { jsx as
|
|
13020
|
+
import { jsx as jsx258, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
12942
13021
|
var open = keyframes2`
|
|
12943
13022
|
from {
|
|
12944
13023
|
opacity: 0;
|
|
@@ -13023,7 +13102,7 @@ var menuContentCss = css32`
|
|
|
13023
13102
|
margin: var(--menu-divider-margin) 0;
|
|
13024
13103
|
}
|
|
13025
13104
|
`;
|
|
13026
|
-
var MenuContent =
|
|
13105
|
+
var MenuContent = styled52(DropdownMenuContent)`
|
|
13027
13106
|
${menuContentCss}
|
|
13028
13107
|
min-width: var(--radix-dropdown-menu-trigger-width);
|
|
13029
13108
|
`;
|
|
@@ -13051,25 +13130,25 @@ var Menu = forwardRef17(
|
|
|
13051
13130
|
onOpenChange: () => null
|
|
13052
13131
|
};
|
|
13053
13132
|
}
|
|
13054
|
-
return /* @__PURE__ */
|
|
13133
|
+
return /* @__PURE__ */ jsx258(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs35(
|
|
13055
13134
|
DropdownMenu,
|
|
13056
13135
|
{
|
|
13057
13136
|
modal: false,
|
|
13058
13137
|
...controlProps,
|
|
13059
13138
|
children: [
|
|
13060
|
-
/* @__PURE__ */
|
|
13139
|
+
/* @__PURE__ */ jsx258(DropdownMenuTrigger, { asChild: true, children: isNotUndefined9(trigger) ? trigger : /* @__PURE__ */ jsx258(
|
|
13061
13140
|
Button,
|
|
13062
13141
|
{
|
|
13063
13142
|
ref,
|
|
13064
13143
|
"aria-expanded": isOpen,
|
|
13065
13144
|
disabled,
|
|
13066
13145
|
forceState: isOpen ? "active" : void 0,
|
|
13067
|
-
rightIcon: /* @__PURE__ */
|
|
13146
|
+
rightIcon: /* @__PURE__ */ jsx258(Icon, { type: "caret-down" }),
|
|
13068
13147
|
...triggerProps,
|
|
13069
13148
|
children: label
|
|
13070
13149
|
}
|
|
13071
13150
|
) }),
|
|
13072
|
-
/* @__PURE__ */
|
|
13151
|
+
/* @__PURE__ */ jsx258(DropdownMenuPortal, { children: /* @__PURE__ */ jsx258(
|
|
13073
13152
|
MenuContent,
|
|
13074
13153
|
{
|
|
13075
13154
|
...props,
|
|
@@ -13093,19 +13172,19 @@ Menu.displayName = "Menu_UI";
|
|
|
13093
13172
|
Menu.displayName = "Menu_UI";
|
|
13094
13173
|
|
|
13095
13174
|
// src/components/Menu/MenuLabel.tsx
|
|
13096
|
-
import { styled as
|
|
13175
|
+
import { styled as styled53 } from "styled-components";
|
|
13097
13176
|
import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
|
|
13098
|
-
import { jsx as
|
|
13099
|
-
var StyledMenuLabel =
|
|
13177
|
+
import { jsx as jsx259 } from "react/jsx-runtime";
|
|
13178
|
+
var StyledMenuLabel = styled53(DropdownMenuLabel)`
|
|
13100
13179
|
padding: var(--wui-space-02);
|
|
13101
13180
|
`;
|
|
13102
13181
|
var MenuLabel = ({ children, ...props }) => {
|
|
13103
|
-
return /* @__PURE__ */
|
|
13182
|
+
return /* @__PURE__ */ jsx259(
|
|
13104
13183
|
StyledMenuLabel,
|
|
13105
13184
|
{
|
|
13106
13185
|
asChild: true,
|
|
13107
13186
|
...props,
|
|
13108
|
-
children: /* @__PURE__ */
|
|
13187
|
+
children: /* @__PURE__ */ jsx259(
|
|
13109
13188
|
Heading,
|
|
13110
13189
|
{
|
|
13111
13190
|
renderAs: "span",
|
|
@@ -13121,7 +13200,7 @@ MenuLabel.displayName = "MenuLabel_UI";
|
|
|
13121
13200
|
|
|
13122
13201
|
// src/components/Menu/SubMenu.tsx
|
|
13123
13202
|
import { useState as useState16 } from "react";
|
|
13124
|
-
import { styled as
|
|
13203
|
+
import { styled as styled56 } from "styled-components";
|
|
13125
13204
|
import {
|
|
13126
13205
|
DropdownMenuPortal as DropdownMenuPortal2,
|
|
13127
13206
|
DropdownMenuSub,
|
|
@@ -13134,10 +13213,10 @@ import { isNotNil as isNotNil22 } from "@wistia/type-guards";
|
|
|
13134
13213
|
|
|
13135
13214
|
// src/components/Menu/MenuItemButton.tsx
|
|
13136
13215
|
import { forwardRef as forwardRef18 } from "react";
|
|
13137
|
-
import { styled as
|
|
13216
|
+
import { styled as styled54 } from "styled-components";
|
|
13138
13217
|
import { isNotNil as isNotNil21, isNotUndefined as isNotUndefined10 } from "@wistia/type-guards";
|
|
13139
|
-
import { jsx as
|
|
13140
|
-
var StyledButton3 =
|
|
13218
|
+
import { jsx as jsx260, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
13219
|
+
var StyledButton3 = styled54(Button)`
|
|
13141
13220
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
13142
13221
|
|
|
13143
13222
|
display: flex;
|
|
@@ -13176,7 +13255,7 @@ var StyledButton3 = styled53(Button)`
|
|
|
13176
13255
|
padding-left: var(--wui-space-04);
|
|
13177
13256
|
}
|
|
13178
13257
|
`;
|
|
13179
|
-
var StyledLeftIconContainer =
|
|
13258
|
+
var StyledLeftIconContainer = styled54.div`
|
|
13180
13259
|
height: var(--menu-item-left-icon-size);
|
|
13181
13260
|
width: var(--menu-item-left-icon-size);
|
|
13182
13261
|
|
|
@@ -13188,7 +13267,7 @@ var StyledLeftIconContainer = styled53.div`
|
|
|
13188
13267
|
}
|
|
13189
13268
|
}
|
|
13190
13269
|
`;
|
|
13191
|
-
var StyledRightIconContainer =
|
|
13270
|
+
var StyledRightIconContainer = styled54.div`
|
|
13192
13271
|
height: var(--menu-item-right-icon-size);
|
|
13193
13272
|
width: var(--menu-item-right-icon-size);
|
|
13194
13273
|
|
|
@@ -13200,13 +13279,13 @@ var StyledRightIconContainer = styled53.div`
|
|
|
13200
13279
|
}
|
|
13201
13280
|
}
|
|
13202
13281
|
`;
|
|
13203
|
-
var StyledLabelAndDescriptionContainer =
|
|
13282
|
+
var StyledLabelAndDescriptionContainer = styled54.div`
|
|
13204
13283
|
display: flex;
|
|
13205
13284
|
flex-direction: column;
|
|
13206
13285
|
gap: var(--menu-label-description-gap);
|
|
13207
13286
|
flex-basis: 100%;
|
|
13208
13287
|
`;
|
|
13209
|
-
var StyledBadgeContainer =
|
|
13288
|
+
var StyledBadgeContainer = styled54.div`
|
|
13210
13289
|
align-self: start;
|
|
13211
13290
|
justify-self: end;
|
|
13212
13291
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -13221,7 +13300,7 @@ var MenuItemButton = forwardRef18(({ children, appearance, command, icon, ...pro
|
|
|
13221
13300
|
colorScheme = "error";
|
|
13222
13301
|
}
|
|
13223
13302
|
if (appearance === "gated") {
|
|
13224
|
-
badge = /* @__PURE__ */
|
|
13303
|
+
badge = /* @__PURE__ */ jsx260(
|
|
13225
13304
|
Icon,
|
|
13226
13305
|
{
|
|
13227
13306
|
colorScheme: "purple",
|
|
@@ -13243,10 +13322,10 @@ var MenuItemButton = forwardRef18(({ children, appearance, command, icon, ...pro
|
|
|
13243
13322
|
fullWidth: true,
|
|
13244
13323
|
unstyled: true,
|
|
13245
13324
|
children: [
|
|
13246
|
-
isNotNil21(props.leftIcon) ? /* @__PURE__ */
|
|
13247
|
-
/* @__PURE__ */
|
|
13248
|
-
isNotNil21(badge) || isNotNil21(command) ? /* @__PURE__ */
|
|
13249
|
-
isNotNil21(props.rightIcon) ? /* @__PURE__ */
|
|
13325
|
+
isNotNil21(props.leftIcon) ? /* @__PURE__ */ jsx260(StyledLeftIconContainer, { children: props.leftIcon }) : null,
|
|
13326
|
+
/* @__PURE__ */ jsx260(StyledLabelAndDescriptionContainer, { children }),
|
|
13327
|
+
isNotNil21(badge) || isNotNil21(command) ? /* @__PURE__ */ jsx260(StyledBadgeContainer, { children: badge ?? command }) : null,
|
|
13328
|
+
isNotNil21(props.rightIcon) ? /* @__PURE__ */ jsx260(StyledRightIconContainer, { children: props.rightIcon }) : null
|
|
13250
13329
|
]
|
|
13251
13330
|
}
|
|
13252
13331
|
);
|
|
@@ -13254,15 +13333,15 @@ var MenuItemButton = forwardRef18(({ children, appearance, command, icon, ...pro
|
|
|
13254
13333
|
MenuItemButton.displayName = "MenuItemButton_UI";
|
|
13255
13334
|
|
|
13256
13335
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
13257
|
-
import { styled as
|
|
13258
|
-
import { jsx as
|
|
13259
|
-
var StyledMenuItemLabel =
|
|
13260
|
-
var StyledMenuItemDescription =
|
|
13336
|
+
import { styled as styled55 } from "styled-components";
|
|
13337
|
+
import { jsx as jsx261 } from "react/jsx-runtime";
|
|
13338
|
+
var StyledMenuItemLabel = styled55.span``;
|
|
13339
|
+
var StyledMenuItemDescription = styled55(Text)``;
|
|
13261
13340
|
var MenuItemLabel = ({ children }) => {
|
|
13262
|
-
return /* @__PURE__ */
|
|
13341
|
+
return /* @__PURE__ */ jsx261(StyledMenuItemLabel, { children });
|
|
13263
13342
|
};
|
|
13264
13343
|
var MenuItemDescription = ({ children }) => {
|
|
13265
|
-
return /* @__PURE__ */
|
|
13344
|
+
return /* @__PURE__ */ jsx261(
|
|
13266
13345
|
StyledMenuItemDescription,
|
|
13267
13346
|
{
|
|
13268
13347
|
prominence: "secondary",
|
|
@@ -13273,18 +13352,18 @@ var MenuItemDescription = ({ children }) => {
|
|
|
13273
13352
|
};
|
|
13274
13353
|
|
|
13275
13354
|
// src/components/Menu/SubMenu.tsx
|
|
13276
|
-
import { jsx as
|
|
13277
|
-
var SubMenuContent =
|
|
13355
|
+
import { jsx as jsx262, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
13356
|
+
var SubMenuContent = styled56(DropdownMenuSubContent)`
|
|
13278
13357
|
${menuContentCss}
|
|
13279
13358
|
|
|
13280
13359
|
${mq.smAndDown} {
|
|
13281
13360
|
transform: translateX(-100%) !important;
|
|
13282
13361
|
}
|
|
13283
13362
|
`;
|
|
13284
|
-
var StyledMobileSubMenuItems =
|
|
13363
|
+
var StyledMobileSubMenuItems = styled56.div`
|
|
13285
13364
|
margin-left: var(--wui-space-04);
|
|
13286
13365
|
`;
|
|
13287
|
-
var StyledSubTrigger =
|
|
13366
|
+
var StyledSubTrigger = styled56(DropdownMenuSubTrigger)`
|
|
13288
13367
|
outline: none;
|
|
13289
13368
|
|
|
13290
13369
|
&[data-state='open'],
|
|
@@ -13295,12 +13374,12 @@ var StyledSubTrigger = styled55(DropdownMenuSubTrigger)`
|
|
|
13295
13374
|
var SubMenuTrigger = ({ icon, ...props }) => {
|
|
13296
13375
|
const { isSmAndUp } = useMq();
|
|
13297
13376
|
const Trigger4 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
|
|
13298
|
-
return /* @__PURE__ */
|
|
13377
|
+
return /* @__PURE__ */ jsx262(Trigger4, { asChild: true, children: /* @__PURE__ */ jsx262(
|
|
13299
13378
|
MenuItemButton,
|
|
13300
13379
|
{
|
|
13301
13380
|
...props,
|
|
13302
13381
|
leftIcon: icon,
|
|
13303
|
-
rightIcon: /* @__PURE__ */
|
|
13382
|
+
rightIcon: /* @__PURE__ */ jsx262(Icon, { type: "caret-right" })
|
|
13304
13383
|
}
|
|
13305
13384
|
) });
|
|
13306
13385
|
};
|
|
@@ -13316,10 +13395,10 @@ var SubMenu = ({
|
|
|
13316
13395
|
const { compact } = useMenuContext();
|
|
13317
13396
|
return isSmAndUp ? /* @__PURE__ */ jsxs37(DropdownMenuSub, { onOpenChange, children: [
|
|
13318
13397
|
/* @__PURE__ */ jsxs37(SubMenuTrigger, { ...props, children: [
|
|
13319
|
-
/* @__PURE__ */
|
|
13320
|
-
isNotNil22(description) ? /* @__PURE__ */
|
|
13398
|
+
/* @__PURE__ */ jsx262(MenuItemLabel, { children: label }),
|
|
13399
|
+
isNotNil22(description) ? /* @__PURE__ */ jsx262(MenuItemDescription, { children: description }) : null
|
|
13321
13400
|
] }),
|
|
13322
|
-
/* @__PURE__ */
|
|
13401
|
+
/* @__PURE__ */ jsx262(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx262(SubMenuContent, { $compact: compact, children }) })
|
|
13323
13402
|
] }) : /* @__PURE__ */ jsxs37(DropdownMenuGroup, { children: [
|
|
13324
13403
|
/* @__PURE__ */ jsxs37(
|
|
13325
13404
|
SubMenuTrigger,
|
|
@@ -13330,12 +13409,12 @@ var SubMenu = ({
|
|
|
13330
13409
|
setIsExpanded((prev) => !prev);
|
|
13331
13410
|
},
|
|
13332
13411
|
children: [
|
|
13333
|
-
/* @__PURE__ */
|
|
13334
|
-
/* @__PURE__ */
|
|
13412
|
+
/* @__PURE__ */ jsx262(MenuItemLabel, { children: label }),
|
|
13413
|
+
/* @__PURE__ */ jsx262(MenuItemDescription, { children: description })
|
|
13335
13414
|
]
|
|
13336
13415
|
}
|
|
13337
13416
|
),
|
|
13338
|
-
/* @__PURE__ */
|
|
13417
|
+
/* @__PURE__ */ jsx262(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
|
|
13339
13418
|
] });
|
|
13340
13419
|
};
|
|
13341
13420
|
SubMenu.displayName = "SubMenu_UI";
|
|
@@ -13343,15 +13422,15 @@ SubMenu.displayName = "SubMenu_UI";
|
|
|
13343
13422
|
// src/components/Menu/MenuItem.tsx
|
|
13344
13423
|
import { forwardRef as forwardRef19 } from "react";
|
|
13345
13424
|
import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
|
|
13346
|
-
import { jsx as
|
|
13425
|
+
import { jsx as jsx263 } from "react/jsx-runtime";
|
|
13347
13426
|
var MenuItem = forwardRef19(
|
|
13348
13427
|
({ onSelect = () => null, ...props }, ref) => {
|
|
13349
|
-
return /* @__PURE__ */
|
|
13428
|
+
return /* @__PURE__ */ jsx263(
|
|
13350
13429
|
DropdownMenuItem2,
|
|
13351
13430
|
{
|
|
13352
13431
|
asChild: true,
|
|
13353
13432
|
onSelect,
|
|
13354
|
-
children: /* @__PURE__ */
|
|
13433
|
+
children: /* @__PURE__ */ jsx263(
|
|
13355
13434
|
MenuItemButton,
|
|
13356
13435
|
{
|
|
13357
13436
|
...props,
|
|
@@ -13367,19 +13446,19 @@ MenuItem.displayName = "MenuItem_UI";
|
|
|
13367
13446
|
|
|
13368
13447
|
// src/components/Menu/MenuRadioGroup.tsx
|
|
13369
13448
|
import { DropdownMenuRadioGroup } from "@radix-ui/react-dropdown-menu";
|
|
13370
|
-
import { jsx as
|
|
13449
|
+
import { jsx as jsx264 } from "react/jsx-runtime";
|
|
13371
13450
|
var MenuRadioGroup = ({ children, ...props }) => {
|
|
13372
|
-
return /* @__PURE__ */
|
|
13451
|
+
return /* @__PURE__ */ jsx264(DropdownMenuRadioGroup, { ...props, children });
|
|
13373
13452
|
};
|
|
13374
13453
|
MenuRadioGroup.displayName = "MenuRadioGroup_UI";
|
|
13375
13454
|
|
|
13376
13455
|
// src/components/Menu/RadioMenuItem.tsx
|
|
13377
13456
|
import { DropdownMenuItemIndicator, DropdownMenuRadioItem } from "@radix-ui/react-dropdown-menu";
|
|
13378
|
-
import { jsx as
|
|
13457
|
+
import { jsx as jsx265 } from "react/jsx-runtime";
|
|
13379
13458
|
var RadioMenuItem = ({
|
|
13380
13459
|
onSelect,
|
|
13381
13460
|
value,
|
|
13382
|
-
indicator = /* @__PURE__ */
|
|
13461
|
+
indicator = /* @__PURE__ */ jsx265(
|
|
13383
13462
|
Icon,
|
|
13384
13463
|
{
|
|
13385
13464
|
size: "sm",
|
|
@@ -13389,17 +13468,17 @@ var RadioMenuItem = ({
|
|
|
13389
13468
|
...props
|
|
13390
13469
|
}) => {
|
|
13391
13470
|
const extraProps = onSelect ? { onSelect } : {};
|
|
13392
|
-
return /* @__PURE__ */
|
|
13471
|
+
return /* @__PURE__ */ jsx265(
|
|
13393
13472
|
DropdownMenuRadioItem,
|
|
13394
13473
|
{
|
|
13395
13474
|
...extraProps,
|
|
13396
13475
|
asChild: true,
|
|
13397
13476
|
value,
|
|
13398
|
-
children: /* @__PURE__ */
|
|
13477
|
+
children: /* @__PURE__ */ jsx265(
|
|
13399
13478
|
MenuItemButton,
|
|
13400
13479
|
{
|
|
13401
13480
|
...props,
|
|
13402
|
-
rightIcon: /* @__PURE__ */
|
|
13481
|
+
rightIcon: /* @__PURE__ */ jsx265(DropdownMenuItemIndicator, { children: indicator })
|
|
13403
13482
|
}
|
|
13404
13483
|
)
|
|
13405
13484
|
}
|
|
@@ -13410,7 +13489,7 @@ RadioMenuItem.displayName = "RadioMenuItem_UI";
|
|
|
13410
13489
|
// src/components/Menu/CheckboxMenuItem.tsx
|
|
13411
13490
|
import { DropdownMenuCheckboxItem, DropdownMenuItemIndicator as DropdownMenuItemIndicator2 } from "@radix-ui/react-dropdown-menu";
|
|
13412
13491
|
import { isNotNil as isNotNil23 } from "@wistia/type-guards";
|
|
13413
|
-
import { jsx as
|
|
13492
|
+
import { jsx as jsx266, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
13414
13493
|
var CheckboxIndicator = ({ checked, ...props }) => {
|
|
13415
13494
|
return checked ? /* @__PURE__ */ jsxs38(
|
|
13416
13495
|
"svg",
|
|
@@ -13422,14 +13501,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
|
|
|
13422
13501
|
width: "24",
|
|
13423
13502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13424
13503
|
children: [
|
|
13425
|
-
/* @__PURE__ */
|
|
13504
|
+
/* @__PURE__ */ jsx266(
|
|
13426
13505
|
"path",
|
|
13427
13506
|
{
|
|
13428
13507
|
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",
|
|
13429
13508
|
fill: "#2949e5"
|
|
13430
13509
|
}
|
|
13431
13510
|
),
|
|
13432
|
-
/* @__PURE__ */
|
|
13511
|
+
/* @__PURE__ */ jsx266(
|
|
13433
13512
|
"path",
|
|
13434
13513
|
{
|
|
13435
13514
|
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",
|
|
@@ -13448,14 +13527,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
|
|
|
13448
13527
|
width: "24",
|
|
13449
13528
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13450
13529
|
children: [
|
|
13451
|
-
/* @__PURE__ */
|
|
13530
|
+
/* @__PURE__ */ jsx266(
|
|
13452
13531
|
"path",
|
|
13453
13532
|
{
|
|
13454
13533
|
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",
|
|
13455
13534
|
fill: "#fcfcfd"
|
|
13456
13535
|
}
|
|
13457
13536
|
),
|
|
13458
|
-
/* @__PURE__ */
|
|
13537
|
+
/* @__PURE__ */ jsx266(
|
|
13459
13538
|
"path",
|
|
13460
13539
|
{
|
|
13461
13540
|
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",
|
|
@@ -13472,19 +13551,19 @@ var CheckboxMenuItem = ({
|
|
|
13472
13551
|
onCheckedChange,
|
|
13473
13552
|
...props
|
|
13474
13553
|
}) => {
|
|
13475
|
-
return /* @__PURE__ */
|
|
13554
|
+
return /* @__PURE__ */ jsx266(
|
|
13476
13555
|
DropdownMenuCheckboxItem,
|
|
13477
13556
|
{
|
|
13478
13557
|
asChild: true,
|
|
13479
13558
|
checked,
|
|
13480
13559
|
onCheckedChange,
|
|
13481
13560
|
onSelect,
|
|
13482
|
-
children: /* @__PURE__ */
|
|
13561
|
+
children: /* @__PURE__ */ jsx266(
|
|
13483
13562
|
MenuItemButton,
|
|
13484
13563
|
{
|
|
13485
13564
|
...props,
|
|
13486
|
-
leftIcon: isNotNil23(props.icon) ? props.icon : /* @__PURE__ */
|
|
13487
|
-
rightIcon: isNotNil23(props.icon) ? /* @__PURE__ */
|
|
13565
|
+
leftIcon: isNotNil23(props.icon) ? props.icon : /* @__PURE__ */ jsx266(CheckboxIndicator, { checked }),
|
|
13566
|
+
rightIcon: isNotNil23(props.icon) ? /* @__PURE__ */ jsx266(DropdownMenuItemIndicator2, { children: /* @__PURE__ */ jsx266(Icon, { type: "checkmark" }) }) : void 0
|
|
13488
13567
|
}
|
|
13489
13568
|
)
|
|
13490
13569
|
}
|
|
@@ -13495,7 +13574,7 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem_UI";
|
|
|
13495
13574
|
// src/components/Menu/FilterMenu.tsx
|
|
13496
13575
|
import { Children as Children6, forwardRef as forwardRef20 } from "react";
|
|
13497
13576
|
import { DropdownMenuItem as DropdownMenuItem3 } from "@radix-ui/react-dropdown-menu";
|
|
13498
|
-
import { jsx as
|
|
13577
|
+
import { jsx as jsx267, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
13499
13578
|
var FilterMenuItem = CheckboxMenuItem;
|
|
13500
13579
|
var FilterMenu = forwardRef20(
|
|
13501
13580
|
({ value, onChange, searchValue, onSearchValueChange, children, ...props }, ref) => {
|
|
@@ -13505,7 +13584,7 @@ var FilterMenu = forwardRef20(
|
|
|
13505
13584
|
...props,
|
|
13506
13585
|
ref,
|
|
13507
13586
|
children: [
|
|
13508
|
-
/* @__PURE__ */
|
|
13587
|
+
/* @__PURE__ */ jsx267(
|
|
13509
13588
|
Card,
|
|
13510
13589
|
{
|
|
13511
13590
|
alignItems: "flex-end",
|
|
@@ -13520,7 +13599,7 @@ var FilterMenu = forwardRef20(
|
|
|
13520
13599
|
right: 0,
|
|
13521
13600
|
margin: "1px"
|
|
13522
13601
|
},
|
|
13523
|
-
children: /* @__PURE__ */
|
|
13602
|
+
children: /* @__PURE__ */ jsx267(
|
|
13524
13603
|
Input,
|
|
13525
13604
|
{
|
|
13526
13605
|
autoFocus: true,
|
|
@@ -13546,7 +13625,7 @@ var FilterMenu = forwardRef20(
|
|
|
13546
13625
|
)
|
|
13547
13626
|
}
|
|
13548
13627
|
),
|
|
13549
|
-
/* @__PURE__ */
|
|
13628
|
+
/* @__PURE__ */ jsx267(
|
|
13550
13629
|
MenuItem,
|
|
13551
13630
|
{
|
|
13552
13631
|
disabled: true,
|
|
@@ -13554,13 +13633,13 @@ var FilterMenu = forwardRef20(
|
|
|
13554
13633
|
children: " "
|
|
13555
13634
|
}
|
|
13556
13635
|
),
|
|
13557
|
-
Children6.toArray(children).length > 0 ? children : /* @__PURE__ */
|
|
13558
|
-
value.length > 0 && /* @__PURE__ */
|
|
13636
|
+
Children6.toArray(children).length > 0 ? children : /* @__PURE__ */ jsx267(MenuItem, { disabled: true, children: "No results found" }),
|
|
13637
|
+
value.length > 0 && /* @__PURE__ */ jsx267(
|
|
13559
13638
|
DropdownMenuItem3,
|
|
13560
13639
|
{
|
|
13561
13640
|
disabled: true,
|
|
13562
13641
|
style: { marginTop: "24px" },
|
|
13563
|
-
children: /* @__PURE__ */
|
|
13642
|
+
children: /* @__PURE__ */ jsx267(
|
|
13564
13643
|
Card,
|
|
13565
13644
|
{
|
|
13566
13645
|
alignItems: "flex-end",
|
|
@@ -13575,7 +13654,7 @@ var FilterMenu = forwardRef20(
|
|
|
13575
13654
|
right: 0,
|
|
13576
13655
|
margin: "1px"
|
|
13577
13656
|
},
|
|
13578
|
-
children: /* @__PURE__ */
|
|
13657
|
+
children: /* @__PURE__ */ jsx267(
|
|
13579
13658
|
Button,
|
|
13580
13659
|
{
|
|
13581
13660
|
onClick: () => onChange([]),
|
|
@@ -13595,7 +13674,7 @@ var FilterMenu = forwardRef20(
|
|
|
13595
13674
|
FilterMenu.displayName = "FilterMenu_UI";
|
|
13596
13675
|
|
|
13597
13676
|
// src/components/ContextMenu/ContextMenu.tsx
|
|
13598
|
-
import { jsx as
|
|
13677
|
+
import { jsx as jsx268 } from "react/jsx-runtime";
|
|
13599
13678
|
var ContextMenu = ({
|
|
13600
13679
|
position,
|
|
13601
13680
|
triggerRef,
|
|
@@ -13625,7 +13704,7 @@ var ContextMenu = ({
|
|
|
13625
13704
|
if (!isOpen) {
|
|
13626
13705
|
return null;
|
|
13627
13706
|
}
|
|
13628
|
-
const menu = /* @__PURE__ */
|
|
13707
|
+
const menu = /* @__PURE__ */ jsx268(
|
|
13629
13708
|
Menu,
|
|
13630
13709
|
{
|
|
13631
13710
|
compact,
|
|
@@ -13637,7 +13716,7 @@ var ContextMenu = ({
|
|
|
13637
13716
|
}
|
|
13638
13717
|
},
|
|
13639
13718
|
side,
|
|
13640
|
-
trigger: /* @__PURE__ */
|
|
13719
|
+
trigger: /* @__PURE__ */ jsx268(
|
|
13641
13720
|
"button",
|
|
13642
13721
|
{
|
|
13643
13722
|
"aria-label": "context menu",
|
|
@@ -13663,10 +13742,10 @@ var ContextMenu = ({
|
|
|
13663
13742
|
|
|
13664
13743
|
// src/components/DataCards/DataCard.tsx
|
|
13665
13744
|
import { useRef as useRef15 } from "react";
|
|
13666
|
-
import { styled as
|
|
13745
|
+
import { styled as styled57, keyframes as keyframes3 } from "styled-components";
|
|
13667
13746
|
import { isNotNil as isNotNil25 } from "@wistia/type-guards";
|
|
13668
|
-
import { jsx as
|
|
13669
|
-
var StyledDataCard =
|
|
13747
|
+
import { jsx as jsx269, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
13748
|
+
var StyledDataCard = styled57.div`
|
|
13670
13749
|
--wui-data-card-text: var(--wui-color-text-button);
|
|
13671
13750
|
--wui-color-text: var(--wui-data-card-text);
|
|
13672
13751
|
--wui-data-card-background: var(--wui-color-bg-surface-secondary);
|
|
@@ -13748,7 +13827,7 @@ var shimmer = keyframes3`
|
|
|
13748
13827
|
background-position: -200% 0;
|
|
13749
13828
|
}
|
|
13750
13829
|
`;
|
|
13751
|
-
var LoadingBackground =
|
|
13830
|
+
var LoadingBackground = styled57.div`
|
|
13752
13831
|
background: linear-gradient(
|
|
13753
13832
|
90deg,
|
|
13754
13833
|
var(--wui-color-bg-surface-tertiary) 25%,
|
|
@@ -13759,32 +13838,32 @@ var LoadingBackground = styled56.div`
|
|
|
13759
13838
|
animation: ${shimmer} 1.5s infinite;
|
|
13760
13839
|
border-radius: var(--wui-border-radius-01);
|
|
13761
13840
|
`;
|
|
13762
|
-
var StyledLoadingLabel =
|
|
13841
|
+
var StyledLoadingLabel = styled57(LoadingBackground)`
|
|
13763
13842
|
width: 80px;
|
|
13764
13843
|
height: var(--wui-typography-heading-6-line-height);
|
|
13765
13844
|
`;
|
|
13766
|
-
var StyledLoadingValue =
|
|
13845
|
+
var StyledLoadingValue = styled57(LoadingBackground)`
|
|
13767
13846
|
width: 90%;
|
|
13768
13847
|
height: var(--wui-typography-heading-3-line-height);
|
|
13769
13848
|
`;
|
|
13770
|
-
var StyledLabel3 =
|
|
13849
|
+
var StyledLabel3 = styled57(Heading)`
|
|
13771
13850
|
grid-area: label;
|
|
13772
13851
|
`;
|
|
13773
|
-
var StyledValue =
|
|
13852
|
+
var StyledValue = styled57(Heading)`
|
|
13774
13853
|
grid-area: value;
|
|
13775
13854
|
`;
|
|
13776
|
-
var StyledSlot =
|
|
13855
|
+
var StyledSlot = styled57.div`
|
|
13777
13856
|
display: flex;
|
|
13778
13857
|
justify-content: flex-end;
|
|
13779
13858
|
grid-area: slot;
|
|
13780
13859
|
align-self: center;
|
|
13781
13860
|
`;
|
|
13782
|
-
var StyledDataCardTrendContainer =
|
|
13861
|
+
var StyledDataCardTrendContainer = styled57.div`
|
|
13783
13862
|
position: absolute;
|
|
13784
13863
|
bottom: var(--wui-space-01);
|
|
13785
13864
|
right: var(--wui-space-01);
|
|
13786
13865
|
`;
|
|
13787
|
-
var StyledSubtitle =
|
|
13866
|
+
var StyledSubtitle = styled57(Text)`
|
|
13788
13867
|
grid-area: subtitle;
|
|
13789
13868
|
`;
|
|
13790
13869
|
var DataCardInner = ({
|
|
@@ -13802,24 +13881,24 @@ var DataCardInner = ({
|
|
|
13802
13881
|
$colorScheme: colorScheme,
|
|
13803
13882
|
...props,
|
|
13804
13883
|
children: [
|
|
13805
|
-
/* @__PURE__ */
|
|
13884
|
+
/* @__PURE__ */ jsx269(
|
|
13806
13885
|
StyledLabel3,
|
|
13807
13886
|
{
|
|
13808
13887
|
renderAs: "dt",
|
|
13809
13888
|
variant: "heading6",
|
|
13810
|
-
children: isLoading ? /* @__PURE__ */
|
|
13889
|
+
children: isLoading ? /* @__PURE__ */ jsx269(StyledLoadingLabel, {}) : label
|
|
13811
13890
|
}
|
|
13812
13891
|
),
|
|
13813
|
-
/* @__PURE__ */
|
|
13892
|
+
/* @__PURE__ */ jsx269(
|
|
13814
13893
|
StyledValue,
|
|
13815
13894
|
{
|
|
13816
13895
|
renderAs: "dd",
|
|
13817
13896
|
variant: "heading3",
|
|
13818
|
-
children: isLoading ? /* @__PURE__ */
|
|
13897
|
+
children: isLoading ? /* @__PURE__ */ jsx269(StyledLoadingValue, {}) : value
|
|
13819
13898
|
}
|
|
13820
13899
|
),
|
|
13821
|
-
isNotNil25(upperRightSlot) && !isLoading && /* @__PURE__ */
|
|
13822
|
-
isNotNil25(subtitle) && !isLoading && /* @__PURE__ */
|
|
13900
|
+
isNotNil25(upperRightSlot) && !isLoading && /* @__PURE__ */ jsx269(StyledSlot, { children: upperRightSlot }),
|
|
13901
|
+
isNotNil25(subtitle) && !isLoading && /* @__PURE__ */ jsx269(
|
|
13823
13902
|
StyledSubtitle,
|
|
13824
13903
|
{
|
|
13825
13904
|
"data-wui-data-card-subtitle": true,
|
|
@@ -13827,7 +13906,7 @@ var DataCardInner = ({
|
|
|
13827
13906
|
children: subtitle
|
|
13828
13907
|
}
|
|
13829
13908
|
),
|
|
13830
|
-
isNotNil25(trend) && !isLoading && /* @__PURE__ */
|
|
13909
|
+
isNotNil25(trend) && !isLoading && /* @__PURE__ */ jsx269(StyledDataCardTrendContainer, { children: trend })
|
|
13831
13910
|
]
|
|
13832
13911
|
}
|
|
13833
13912
|
);
|
|
@@ -13835,12 +13914,12 @@ var DataCard = (props) => {
|
|
|
13835
13914
|
const ref = useRef15(null);
|
|
13836
13915
|
if (isNotNil25(props.href) || isNotNil25(props.onClick)) {
|
|
13837
13916
|
const { "aria-pressed": ariaPressed, ...dataCardProps } = props;
|
|
13838
|
-
return /* @__PURE__ */
|
|
13917
|
+
return /* @__PURE__ */ jsx269(ClickRegion, { targetRef: ref, children: /* @__PURE__ */ jsx269(
|
|
13839
13918
|
DataCardInner,
|
|
13840
13919
|
{
|
|
13841
13920
|
upperRightSlot: props.upperRightSlot,
|
|
13842
13921
|
...dataCardProps,
|
|
13843
|
-
label: /* @__PURE__ */
|
|
13922
|
+
label: /* @__PURE__ */ jsx269(
|
|
13844
13923
|
Button,
|
|
13845
13924
|
{
|
|
13846
13925
|
ref,
|
|
@@ -13857,14 +13936,14 @@ var DataCard = (props) => {
|
|
|
13857
13936
|
}
|
|
13858
13937
|
) });
|
|
13859
13938
|
}
|
|
13860
|
-
return /* @__PURE__ */
|
|
13939
|
+
return /* @__PURE__ */ jsx269(DataCardInner, { ...props });
|
|
13861
13940
|
};
|
|
13862
13941
|
DataCard.displayName = "DataCard_UI";
|
|
13863
13942
|
|
|
13864
13943
|
// src/components/DataCards/DataCards.tsx
|
|
13865
|
-
import { styled as
|
|
13866
|
-
import { jsx as
|
|
13867
|
-
var StyledDataCards =
|
|
13944
|
+
import { styled as styled58 } from "styled-components";
|
|
13945
|
+
import { jsx as jsx270 } from "react/jsx-runtime";
|
|
13946
|
+
var StyledDataCards = styled58(Box)`
|
|
13868
13947
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
13869
13948
|
|
|
13870
13949
|
> * {
|
|
@@ -13878,7 +13957,7 @@ var DataCards = ({
|
|
|
13878
13957
|
colorScheme = "inherit",
|
|
13879
13958
|
...props
|
|
13880
13959
|
}) => {
|
|
13881
|
-
return /* @__PURE__ */
|
|
13960
|
+
return /* @__PURE__ */ jsx270(
|
|
13882
13961
|
StyledDataCards,
|
|
13883
13962
|
{
|
|
13884
13963
|
...props,
|
|
@@ -13897,9 +13976,9 @@ var DataCards = ({
|
|
|
13897
13976
|
DataCards.displayName = "DataCards_UI";
|
|
13898
13977
|
|
|
13899
13978
|
// src/components/DataCards/DataCardTrend.tsx
|
|
13900
|
-
import { styled as
|
|
13901
|
-
import { jsx as
|
|
13902
|
-
var StyledDataCardTrend =
|
|
13979
|
+
import { styled as styled59 } from "styled-components";
|
|
13980
|
+
import { jsx as jsx271, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
13981
|
+
var StyledDataCardTrend = styled59.div`
|
|
13903
13982
|
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
13904
13983
|
background: var(--wui-color-bg-app);
|
|
13905
13984
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -13915,7 +13994,7 @@ var DataCardTrend = ({
|
|
|
13915
13994
|
...props
|
|
13916
13995
|
}) => {
|
|
13917
13996
|
return /* @__PURE__ */ jsxs41(StyledDataCardTrend, { $outlook: outlook, children: [
|
|
13918
|
-
/* @__PURE__ */
|
|
13997
|
+
/* @__PURE__ */ jsx271(
|
|
13919
13998
|
Icon,
|
|
13920
13999
|
{
|
|
13921
14000
|
size: "md",
|
|
@@ -13923,7 +14002,7 @@ var DataCardTrend = ({
|
|
|
13923
14002
|
...props
|
|
13924
14003
|
}
|
|
13925
14004
|
),
|
|
13926
|
-
/* @__PURE__ */
|
|
14005
|
+
/* @__PURE__ */ jsx271(
|
|
13927
14006
|
Text,
|
|
13928
14007
|
{
|
|
13929
14008
|
prominence: "secondary",
|
|
@@ -13935,15 +14014,15 @@ var DataCardTrend = ({
|
|
|
13935
14014
|
};
|
|
13936
14015
|
|
|
13937
14016
|
// src/components/DataCards/DataCardHoverArrow.tsx
|
|
13938
|
-
import { styled as
|
|
13939
|
-
import { jsx as
|
|
13940
|
-
var StyledIconContainer =
|
|
14017
|
+
import { styled as styled60 } from "styled-components";
|
|
14018
|
+
import { jsx as jsx272 } from "react/jsx-runtime";
|
|
14019
|
+
var StyledIconContainer = styled60.div`
|
|
13941
14020
|
display: flex;
|
|
13942
14021
|
align-items: center;
|
|
13943
14022
|
align-self: center;
|
|
13944
14023
|
height: 0;
|
|
13945
14024
|
`;
|
|
13946
|
-
var DataCardHoverArrow = () => /* @__PURE__ */
|
|
14025
|
+
var DataCardHoverArrow = () => /* @__PURE__ */ jsx272(StyledIconContainer, { children: /* @__PURE__ */ jsx272(
|
|
13947
14026
|
Icon,
|
|
13948
14027
|
{
|
|
13949
14028
|
"data-wui-data-card-hover-icon": true,
|
|
@@ -13953,9 +14032,9 @@ var DataCardHoverArrow = () => /* @__PURE__ */ jsx271(StyledIconContainer, { chi
|
|
|
13953
14032
|
DataCardHoverArrow.displayName = "DataCardHoverArrow_UI";
|
|
13954
14033
|
|
|
13955
14034
|
// src/components/DataList/DataList.tsx
|
|
13956
|
-
import { styled as
|
|
13957
|
-
import { jsx as
|
|
13958
|
-
var StyledDataList =
|
|
14035
|
+
import { styled as styled61 } from "styled-components";
|
|
14036
|
+
import { jsx as jsx273 } from "react/jsx-runtime";
|
|
14037
|
+
var StyledDataList = styled61.dl`
|
|
13959
14038
|
display: grid;
|
|
13960
14039
|
grid-template-columns: auto 1fr;
|
|
13961
14040
|
column-gap: var(--wui-space-02);
|
|
@@ -13983,7 +14062,7 @@ var DataList = ({
|
|
|
13983
14062
|
labelProminence = "primary",
|
|
13984
14063
|
...props
|
|
13985
14064
|
}) => {
|
|
13986
|
-
return /* @__PURE__ */
|
|
14065
|
+
return /* @__PURE__ */ jsx273(
|
|
13987
14066
|
StyledDataList,
|
|
13988
14067
|
{
|
|
13989
14068
|
role: "list",
|
|
@@ -14006,9 +14085,9 @@ var DataListItem = ({ children }) => {
|
|
|
14006
14085
|
DataListItem.displayName = "DataListItem_UI";
|
|
14007
14086
|
|
|
14008
14087
|
// src/components/DataList/DataListItemLabel.tsx
|
|
14009
|
-
import { jsx as
|
|
14088
|
+
import { jsx as jsx274 } from "react/jsx-runtime";
|
|
14010
14089
|
var DataListItemLabel = (props) => {
|
|
14011
|
-
return /* @__PURE__ */
|
|
14090
|
+
return /* @__PURE__ */ jsx274(
|
|
14012
14091
|
Text,
|
|
14013
14092
|
{
|
|
14014
14093
|
variant: "label4",
|
|
@@ -14020,9 +14099,9 @@ var DataListItemLabel = (props) => {
|
|
|
14020
14099
|
DataListItemLabel.displayName = "DataListItemLabel_UI";
|
|
14021
14100
|
|
|
14022
14101
|
// src/components/DataList/DataListItemValue.tsx
|
|
14023
|
-
import { jsx as
|
|
14102
|
+
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
14024
14103
|
var DataListItemValue = (props) => {
|
|
14025
|
-
return /* @__PURE__ */
|
|
14104
|
+
return /* @__PURE__ */ jsx275(
|
|
14026
14105
|
Text,
|
|
14027
14106
|
{
|
|
14028
14107
|
variant: "body3",
|
|
@@ -14034,8 +14113,8 @@ var DataListItemValue = (props) => {
|
|
|
14034
14113
|
DataListItemValue.displayName = "DataListItemValue_UI";
|
|
14035
14114
|
|
|
14036
14115
|
// src/components/Divider/Divider.tsx
|
|
14037
|
-
import { styled as
|
|
14038
|
-
import { jsx as
|
|
14116
|
+
import { styled as styled62, css as css33 } from "styled-components";
|
|
14117
|
+
import { jsx as jsx276 } from "react/jsx-runtime";
|
|
14039
14118
|
var horizontalBorderCss = css33`
|
|
14040
14119
|
border-top-color: var(--wui-color-border);
|
|
14041
14120
|
border-top-style: solid;
|
|
@@ -14049,7 +14128,7 @@ var verticalBorderCss = css33`
|
|
|
14049
14128
|
min-height: 100%;
|
|
14050
14129
|
width: 1px;
|
|
14051
14130
|
`;
|
|
14052
|
-
var DividerComponent =
|
|
14131
|
+
var DividerComponent = styled62.div`
|
|
14053
14132
|
${({ $orientation }) => {
|
|
14054
14133
|
switch ($orientation) {
|
|
14055
14134
|
case "vertical":
|
|
@@ -14062,7 +14141,7 @@ var DividerComponent = styled61.div`
|
|
|
14062
14141
|
`;
|
|
14063
14142
|
var Divider = ({ orientation = "horizontal", ...props }) => {
|
|
14064
14143
|
const responsiveOrientation = useResponsiveProp(orientation);
|
|
14065
|
-
return /* @__PURE__ */
|
|
14144
|
+
return /* @__PURE__ */ jsx276(
|
|
14066
14145
|
DividerComponent,
|
|
14067
14146
|
{
|
|
14068
14147
|
$orientation: responsiveOrientation,
|
|
@@ -14075,10 +14154,10 @@ var Divider = ({ orientation = "horizontal", ...props }) => {
|
|
|
14075
14154
|
Divider.displayName = "Divider_UI";
|
|
14076
14155
|
|
|
14077
14156
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
14078
|
-
import { styled as
|
|
14157
|
+
import { styled as styled63, css as css34 } from "styled-components";
|
|
14079
14158
|
import { useState as useState18, useRef as useRef16 } from "react";
|
|
14080
|
-
import { Fragment as Fragment8, jsx as
|
|
14081
|
-
var StyledInput =
|
|
14159
|
+
import { Fragment as Fragment8, jsx as jsx277, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
14160
|
+
var StyledInput = styled63(Input)`
|
|
14082
14161
|
&:not([rows]) {
|
|
14083
14162
|
min-height: unset;
|
|
14084
14163
|
}
|
|
@@ -14113,7 +14192,7 @@ var editableStyles = css34`
|
|
|
14113
14192
|
cursor: pointer;
|
|
14114
14193
|
}
|
|
14115
14194
|
`;
|
|
14116
|
-
var StyledHeading2 =
|
|
14195
|
+
var StyledHeading2 = styled63(Heading)`
|
|
14117
14196
|
width: 100%;
|
|
14118
14197
|
border-radius: var(--wui-border-radius-02);
|
|
14119
14198
|
padding: var(--wui-space-02);
|
|
@@ -14168,7 +14247,7 @@ var EditableHeading = ({
|
|
|
14168
14247
|
handleSetEditing(false);
|
|
14169
14248
|
}
|
|
14170
14249
|
};
|
|
14171
|
-
const HeadingComponent2 = /* @__PURE__ */
|
|
14250
|
+
const HeadingComponent2 = /* @__PURE__ */ jsx277(
|
|
14172
14251
|
StyledHeading2,
|
|
14173
14252
|
{
|
|
14174
14253
|
ref: headingRef,
|
|
@@ -14182,7 +14261,7 @@ var EditableHeading = ({
|
|
|
14182
14261
|
return HeadingComponent2;
|
|
14183
14262
|
}
|
|
14184
14263
|
if (isEditing || __forceEditing) {
|
|
14185
|
-
return /* @__PURE__ */
|
|
14264
|
+
return /* @__PURE__ */ jsx277(
|
|
14186
14265
|
StyledInput,
|
|
14187
14266
|
{
|
|
14188
14267
|
$height: headingHeight,
|
|
@@ -14202,8 +14281,8 @@ var EditableHeading = ({
|
|
|
14202
14281
|
);
|
|
14203
14282
|
}
|
|
14204
14283
|
return /* @__PURE__ */ jsxs42(Fragment8, { children: [
|
|
14205
|
-
/* @__PURE__ */
|
|
14206
|
-
/* @__PURE__ */
|
|
14284
|
+
/* @__PURE__ */ jsx277(Tooltip, { content: tooltipText, children: HeadingComponent2 }),
|
|
14285
|
+
/* @__PURE__ */ jsx277(ScreenReaderOnly, { children: /* @__PURE__ */ jsx277(
|
|
14207
14286
|
"button",
|
|
14208
14287
|
{
|
|
14209
14288
|
"aria-label": ariaLabel,
|
|
@@ -14216,14 +14295,14 @@ var EditableHeading = ({
|
|
|
14216
14295
|
|
|
14217
14296
|
// src/components/EditableText/EditableTextDisplay.tsx
|
|
14218
14297
|
import { useContext as useContext6, useRef as useRef17, forwardRef as forwardRef21 } from "react";
|
|
14219
|
-
import { styled as
|
|
14298
|
+
import { styled as styled65, css as css35 } from "styled-components";
|
|
14220
14299
|
import { isNotNil as isNotNil26 } from "@wistia/type-guards";
|
|
14221
14300
|
|
|
14222
14301
|
// src/components/EditableText/EditableTextRoot.tsx
|
|
14223
14302
|
import { createContext as createContext7, useMemo as useMemo13, useState as useState19, useCallback as useCallback16, useId as useId4 } from "react";
|
|
14224
14303
|
import { isNonEmptyString as isNonEmptyString6 } from "@wistia/type-guards";
|
|
14225
|
-
import { styled as
|
|
14226
|
-
import { jsx as
|
|
14304
|
+
import { styled as styled64 } from "styled-components";
|
|
14305
|
+
import { jsx as jsx278 } from "react/jsx-runtime";
|
|
14227
14306
|
var LARGE_PADDING = "var(--wui-space-02)";
|
|
14228
14307
|
var SMALL_PADDING = "var(--wui-space-01)";
|
|
14229
14308
|
var getPaddingForVariant = (variant) => {
|
|
@@ -14258,7 +14337,7 @@ var getPaddingForVariant = (variant) => {
|
|
|
14258
14337
|
}
|
|
14259
14338
|
return SMALL_PADDING;
|
|
14260
14339
|
};
|
|
14261
|
-
var StyledEditableTextRoot =
|
|
14340
|
+
var StyledEditableTextRoot = styled64.div`
|
|
14262
14341
|
display: contents;
|
|
14263
14342
|
|
|
14264
14343
|
--wui-editable-text-padding: ${({ $typographicVariant }) => getPaddingForVariant($typographicVariant)};
|
|
@@ -14356,7 +14435,7 @@ var EditableTextRoot = ({
|
|
|
14356
14435
|
}
|
|
14357
14436
|
return "idle";
|
|
14358
14437
|
};
|
|
14359
|
-
return /* @__PURE__ */
|
|
14438
|
+
return /* @__PURE__ */ jsx278(
|
|
14360
14439
|
StyledEditableTextRoot,
|
|
14361
14440
|
{
|
|
14362
14441
|
$typographicVariant: typographicVariant,
|
|
@@ -14364,14 +14443,14 @@ var EditableTextRoot = ({
|
|
|
14364
14443
|
"data-wui-editable-text-root": true,
|
|
14365
14444
|
"data-wui-editable-text-state": getState(),
|
|
14366
14445
|
...props,
|
|
14367
|
-
children: /* @__PURE__ */
|
|
14446
|
+
children: /* @__PURE__ */ jsx278(EditableTextContext.Provider, { value: context, children })
|
|
14368
14447
|
}
|
|
14369
14448
|
);
|
|
14370
14449
|
};
|
|
14371
14450
|
|
|
14372
14451
|
// src/components/EditableText/EditableTextDisplay.tsx
|
|
14373
|
-
import { jsx as
|
|
14374
|
-
var StyledEditableTextDisplay =
|
|
14452
|
+
import { jsx as jsx279, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
14453
|
+
var StyledEditableTextDisplay = styled65.div`
|
|
14375
14454
|
${({ $typographicVariant }) => getTypographicStyles($typographicVariant)}
|
|
14376
14455
|
padding: var(--wui-editable-text-padding);
|
|
14377
14456
|
border-radius: var(--wui-editable-text-border-radius);
|
|
@@ -14423,7 +14502,7 @@ var EditableTextDisplayComponent = forwardRef21(
|
|
|
14423
14502
|
return null;
|
|
14424
14503
|
}
|
|
14425
14504
|
if (asTrigger && !context.readOnly) {
|
|
14426
|
-
return /* @__PURE__ */
|
|
14505
|
+
return /* @__PURE__ */ jsx279(ClickRegion, { targetRef: triggerButtonRef, children: /* @__PURE__ */ jsxs43(
|
|
14427
14506
|
StyledEditableTextDisplay,
|
|
14428
14507
|
{
|
|
14429
14508
|
ref,
|
|
@@ -14435,7 +14514,7 @@ var EditableTextDisplayComponent = forwardRef21(
|
|
|
14435
14514
|
...props,
|
|
14436
14515
|
children: [
|
|
14437
14516
|
displayText,
|
|
14438
|
-
/* @__PURE__ */
|
|
14517
|
+
/* @__PURE__ */ jsx279(
|
|
14439
14518
|
"button",
|
|
14440
14519
|
{
|
|
14441
14520
|
ref: triggerButtonRef,
|
|
@@ -14449,7 +14528,7 @@ var EditableTextDisplayComponent = forwardRef21(
|
|
|
14449
14528
|
}
|
|
14450
14529
|
) });
|
|
14451
14530
|
}
|
|
14452
|
-
return /* @__PURE__ */
|
|
14531
|
+
return /* @__PURE__ */ jsx279(
|
|
14453
14532
|
StyledEditableTextDisplay,
|
|
14454
14533
|
{
|
|
14455
14534
|
ref,
|
|
@@ -14472,10 +14551,10 @@ var EditableTextDisplay = makePolymorphic(
|
|
|
14472
14551
|
|
|
14473
14552
|
// src/components/EditableText/EditableTextInput.tsx
|
|
14474
14553
|
import { useContext as useContext7, useEffect as useEffect17, useRef as useRef18 } from "react";
|
|
14475
|
-
import { styled as
|
|
14554
|
+
import { styled as styled66 } from "styled-components";
|
|
14476
14555
|
import { isNotNil as isNotNil27 } from "@wistia/type-guards";
|
|
14477
|
-
import { jsx as
|
|
14478
|
-
var StyledInput2 =
|
|
14556
|
+
import { jsx as jsx280 } from "react/jsx-runtime";
|
|
14557
|
+
var StyledInput2 = styled66(Input)`
|
|
14479
14558
|
&& {
|
|
14480
14559
|
${({ $minLines }) => isNotNil27($minLines) && `min-height: calc(${$minLines}lh + calc(var(--wui-editable-text-padding) * 2));`}
|
|
14481
14560
|
${({ $maxLines }) => isNotNil27($maxLines) && `max-height: calc(${$maxLines}lh + calc(var(--wui-editable-text-padding) * 2));`}
|
|
@@ -14563,7 +14642,7 @@ var EditableTextInput = (props) => {
|
|
|
14563
14642
|
}
|
|
14564
14643
|
};
|
|
14565
14644
|
if (!isEditing) return null;
|
|
14566
|
-
return /* @__PURE__ */
|
|
14645
|
+
return /* @__PURE__ */ jsx280(
|
|
14567
14646
|
StyledInput2,
|
|
14568
14647
|
{
|
|
14569
14648
|
ref: inputRef,
|
|
@@ -14589,14 +14668,14 @@ var EditableTextInput = (props) => {
|
|
|
14589
14668
|
|
|
14590
14669
|
// src/components/EditableText/EditableTextLabel.tsx
|
|
14591
14670
|
import { useContext as useContext8 } from "react";
|
|
14592
|
-
import { jsx as
|
|
14671
|
+
import { jsx as jsx281 } from "react/jsx-runtime";
|
|
14593
14672
|
var EditableTextLabel = ({ ...props }) => {
|
|
14594
14673
|
const context = useContext8(EditableTextContext);
|
|
14595
14674
|
if (!context) {
|
|
14596
14675
|
throw new Error("EditableTextLabel must be used within an EditableTextRoot context");
|
|
14597
14676
|
}
|
|
14598
14677
|
const { id, label, isEditing } = context;
|
|
14599
|
-
return /* @__PURE__ */
|
|
14678
|
+
return /* @__PURE__ */ jsx281(
|
|
14600
14679
|
Label,
|
|
14601
14680
|
{
|
|
14602
14681
|
...isEditing && { htmlFor: id },
|
|
@@ -14607,11 +14686,11 @@ var EditableTextLabel = ({ ...props }) => {
|
|
|
14607
14686
|
};
|
|
14608
14687
|
|
|
14609
14688
|
// src/components/EditableText/EditableText.tsx
|
|
14610
|
-
import { jsx as
|
|
14689
|
+
import { jsx as jsx282, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
14611
14690
|
var EditableText = ({ hideLabel = true, ...props }) => /* @__PURE__ */ jsxs44(EditableTextRoot, { ...props, children: [
|
|
14612
|
-
/* @__PURE__ */
|
|
14613
|
-
/* @__PURE__ */
|
|
14614
|
-
/* @__PURE__ */
|
|
14691
|
+
/* @__PURE__ */ jsx282(EditableTextLabel, { screenReaderOnly: hideLabel }),
|
|
14692
|
+
/* @__PURE__ */ jsx282(EditableTextInput, {}),
|
|
14693
|
+
/* @__PURE__ */ jsx282(EditableTextDisplay, { asTrigger: true })
|
|
14615
14694
|
] });
|
|
14616
14695
|
EditableText.displayName = "EditableText_UI";
|
|
14617
14696
|
|
|
@@ -14740,9 +14819,9 @@ var useFormState = (action, initialData = {}) => {
|
|
|
14740
14819
|
// src/components/Form/FormErrorSummary.tsx
|
|
14741
14820
|
import { useContext as useContext12, useRef as useRef19 } from "react";
|
|
14742
14821
|
import { isArray as isArray3, isNotUndefined as isNotUndefined11 } from "@wistia/type-guards";
|
|
14743
|
-
import { jsx as
|
|
14822
|
+
import { jsx as jsx283, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
14744
14823
|
var ErrorItem = ({ name, error, formId }) => {
|
|
14745
|
-
return /* @__PURE__ */
|
|
14824
|
+
return /* @__PURE__ */ jsx283("li", { children: /* @__PURE__ */ jsx283(Link, { href: `#${formId}-${name}`, children: error }) }, name);
|
|
14746
14825
|
};
|
|
14747
14826
|
var FormErrorSummary = ({ description }) => {
|
|
14748
14827
|
const ref = useRef19(null);
|
|
@@ -14752,9 +14831,9 @@ var FormErrorSummary = ({ description }) => {
|
|
|
14752
14831
|
return null;
|
|
14753
14832
|
}
|
|
14754
14833
|
return /* @__PURE__ */ jsxs45("div", { ref, children: [
|
|
14755
|
-
/* @__PURE__ */
|
|
14756
|
-
/* @__PURE__ */
|
|
14757
|
-
([name, error]) => isArray3(error) ? error.map((err) => /* @__PURE__ */
|
|
14834
|
+
/* @__PURE__ */ jsx283("p", { children: description }),
|
|
14835
|
+
/* @__PURE__ */ jsx283("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined11(error)).map(
|
|
14836
|
+
([name, error]) => isArray3(error) ? error.map((err) => /* @__PURE__ */ jsx283(
|
|
14758
14837
|
ErrorItem,
|
|
14759
14838
|
{
|
|
14760
14839
|
error: err,
|
|
@@ -14762,7 +14841,7 @@ var FormErrorSummary = ({ description }) => {
|
|
|
14762
14841
|
name
|
|
14763
14842
|
},
|
|
14764
14843
|
err
|
|
14765
|
-
)) : /* @__PURE__ */
|
|
14844
|
+
)) : /* @__PURE__ */ jsx283(
|
|
14766
14845
|
ErrorItem,
|
|
14767
14846
|
{
|
|
14768
14847
|
error: error ?? "",
|
|
@@ -14777,10 +14856,10 @@ var FormErrorSummary = ({ description }) => {
|
|
|
14777
14856
|
|
|
14778
14857
|
// src/components/FormField/FormField.tsx
|
|
14779
14858
|
import { Children as Children10, cloneElement as cloneElement8, useContext as useContext13 } from "react";
|
|
14780
|
-
import { styled as
|
|
14859
|
+
import { styled as styled67 } from "styled-components";
|
|
14781
14860
|
import { isArray as isArray4, isNotNil as isNotNil28, isNotUndefined as isNotUndefined12, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
14782
|
-
import { Fragment as Fragment9, jsx as
|
|
14783
|
-
var StyledFormField =
|
|
14861
|
+
import { Fragment as Fragment9, jsx as jsx284, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
14862
|
+
var StyledFormField = styled67.div`
|
|
14784
14863
|
--form-field-spacing: var(--wui-space-01);
|
|
14785
14864
|
--form-field-spacing-inline: var(--wui-space-02);
|
|
14786
14865
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
@@ -14810,7 +14889,7 @@ var StyledFormField = styled66.div`
|
|
|
14810
14889
|
grid-template-rows: 1fr;
|
|
14811
14890
|
}
|
|
14812
14891
|
`;
|
|
14813
|
-
var StyledErrorList =
|
|
14892
|
+
var StyledErrorList = styled67.ul`
|
|
14814
14893
|
margin: 0;
|
|
14815
14894
|
padding: 0;
|
|
14816
14895
|
padding-left: var(--wui-space-04);
|
|
@@ -14822,7 +14901,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
14822
14901
|
const isErrorArray = isArray4(errors);
|
|
14823
14902
|
const isMultipleErrors = isErrorArray && errors.length > 1;
|
|
14824
14903
|
if (!isErrorArray) {
|
|
14825
|
-
return /* @__PURE__ */
|
|
14904
|
+
return /* @__PURE__ */ jsx284(
|
|
14826
14905
|
Text,
|
|
14827
14906
|
{
|
|
14828
14907
|
colorScheme: "error",
|
|
@@ -14835,7 +14914,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
14835
14914
|
);
|
|
14836
14915
|
}
|
|
14837
14916
|
if (!isMultipleErrors) {
|
|
14838
|
-
return /* @__PURE__ */
|
|
14917
|
+
return /* @__PURE__ */ jsx284(
|
|
14839
14918
|
Text,
|
|
14840
14919
|
{
|
|
14841
14920
|
colorScheme: "error",
|
|
@@ -14847,7 +14926,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
14847
14926
|
id
|
|
14848
14927
|
);
|
|
14849
14928
|
}
|
|
14850
|
-
return /* @__PURE__ */
|
|
14929
|
+
return /* @__PURE__ */ jsx284(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ jsx284(
|
|
14851
14930
|
Text,
|
|
14852
14931
|
{
|
|
14853
14932
|
colorScheme: "error",
|
|
@@ -14918,7 +14997,7 @@ var FormField = ({
|
|
|
14918
14997
|
...props,
|
|
14919
14998
|
"data-label-position": labelPosition ?? formState.labelPosition,
|
|
14920
14999
|
children: [
|
|
14921
|
-
!isIntegratedLabel && /* @__PURE__ */
|
|
15000
|
+
!isIntegratedLabel && /* @__PURE__ */ jsx284(
|
|
14922
15001
|
Label,
|
|
14923
15002
|
{
|
|
14924
15003
|
htmlFor: computedId,
|
|
@@ -14926,11 +15005,11 @@ var FormField = ({
|
|
|
14926
15005
|
children: label
|
|
14927
15006
|
}
|
|
14928
15007
|
),
|
|
14929
|
-
isNotNil28(description) ? /* @__PURE__ */
|
|
15008
|
+
isNotNil28(description) ? /* @__PURE__ */ jsx284(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
|
|
14930
15009
|
cloneElement8(children, childProps),
|
|
14931
15010
|
isNotNil28(computedError) ? /* @__PURE__ */ jsxs46(Fragment9, { children: [
|
|
14932
|
-
/* @__PURE__ */
|
|
14933
|
-
/* @__PURE__ */
|
|
15011
|
+
/* @__PURE__ */ jsx284("div", {}),
|
|
15012
|
+
/* @__PURE__ */ jsx284(
|
|
14934
15013
|
ErrorMessages,
|
|
14935
15014
|
{
|
|
14936
15015
|
errors: computedError,
|
|
@@ -14946,7 +15025,7 @@ FormField.displayName = "FormField_UI";
|
|
|
14946
15025
|
|
|
14947
15026
|
// src/components/FormGroup/RadioGroup.tsx
|
|
14948
15027
|
import { createContext as createContext8, useMemo as useMemo14, useContext as useContext14 } from "react";
|
|
14949
|
-
import { jsx as
|
|
15028
|
+
import { jsx as jsx285 } from "react/jsx-runtime";
|
|
14950
15029
|
var RadioGroupContext = createContext8(null);
|
|
14951
15030
|
var useRadioGroup = () => {
|
|
14952
15031
|
return useContext14(RadioGroupContext);
|
|
@@ -14967,15 +15046,15 @@ var RadioGroup = ({
|
|
|
14967
15046
|
value: derivedValue
|
|
14968
15047
|
};
|
|
14969
15048
|
}, [name, derivedValue, onChange]);
|
|
14970
|
-
return /* @__PURE__ */
|
|
15049
|
+
return /* @__PURE__ */ jsx285(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx285(FormGroup, { ...props, children }) });
|
|
14971
15050
|
};
|
|
14972
15051
|
RadioGroup.displayName = "RadioGroup_UI";
|
|
14973
15052
|
|
|
14974
15053
|
// src/components/Grid/Grid.tsx
|
|
14975
15054
|
import { forwardRef as forwardRef22 } from "react";
|
|
14976
|
-
import { styled as
|
|
15055
|
+
import { styled as styled68, css as css36 } from "styled-components";
|
|
14977
15056
|
import { isRecord as isRecord5 } from "@wistia/type-guards";
|
|
14978
|
-
import { jsx as
|
|
15057
|
+
import { jsx as jsx286 } from "react/jsx-runtime";
|
|
14979
15058
|
var DEFAULT_ELEMENT5 = "div";
|
|
14980
15059
|
var getGridTemplateColumns = (maxColumns, minChildWidth, expandItems) => {
|
|
14981
15060
|
if (minChildWidth === "auto" && maxColumns === "auto") {
|
|
@@ -15003,7 +15082,7 @@ var getGridTemplateColumns = (maxColumns, minChildWidth, expandItems) => {
|
|
|
15003
15082
|
);
|
|
15004
15083
|
`;
|
|
15005
15084
|
};
|
|
15006
|
-
var StyledGrid =
|
|
15085
|
+
var StyledGrid = styled68.div`
|
|
15007
15086
|
--wui-grid-column-gap: ${({ $columnGap }) => `var(--wui-${$columnGap})`};
|
|
15008
15087
|
--wui-grid-row-gap: ${({ $rowGap }) => `var(--wui-${$rowGap})`};
|
|
15009
15088
|
|
|
@@ -15027,7 +15106,7 @@ var GridComponent = forwardRef22(
|
|
|
15027
15106
|
const { column, row } = isRecord5(responsiveGap) ? responsiveGap : { column: responsiveGap, row: responsiveGap };
|
|
15028
15107
|
const responsiveColumns = useResponsiveProp(columns);
|
|
15029
15108
|
const responsiveMinChildWidth = useResponsiveProp(minChildWidth);
|
|
15030
|
-
return /* @__PURE__ */
|
|
15109
|
+
return /* @__PURE__ */ jsx286(
|
|
15031
15110
|
StyledGrid,
|
|
15032
15111
|
{
|
|
15033
15112
|
ref,
|
|
@@ -15047,11 +15126,11 @@ GridComponent.displayName = "Grid_UI";
|
|
|
15047
15126
|
var Grid = makePolymorphic(GridComponent);
|
|
15048
15127
|
|
|
15049
15128
|
// src/components/InputClickToCopy/InputClickToCopy.tsx
|
|
15050
|
-
import { styled as
|
|
15129
|
+
import { styled as styled69 } from "styled-components";
|
|
15051
15130
|
import { forwardRef as forwardRef23, useEffect as useEffect18, useState as useState21 } from "react";
|
|
15052
15131
|
import { isFunction as isFunction3 } from "@wistia/type-guards";
|
|
15053
|
-
import { jsx as
|
|
15054
|
-
var StyledIconButton =
|
|
15132
|
+
import { jsx as jsx287 } from "react/jsx-runtime";
|
|
15133
|
+
var StyledIconButton = styled69(IconButton)`
|
|
15055
15134
|
/* override size for icon button since prop gets changed by Input */
|
|
15056
15135
|
height: var(--icon-button-size-sm);
|
|
15057
15136
|
width: var(--icon-button-size-sm);
|
|
@@ -15090,7 +15169,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
15090
15169
|
return value;
|
|
15091
15170
|
});
|
|
15092
15171
|
};
|
|
15093
|
-
return /* @__PURE__ */
|
|
15172
|
+
return /* @__PURE__ */ jsx287(
|
|
15094
15173
|
Input,
|
|
15095
15174
|
{
|
|
15096
15175
|
"aria-label": "Click to Copy",
|
|
@@ -15098,7 +15177,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
15098
15177
|
ref,
|
|
15099
15178
|
disabled,
|
|
15100
15179
|
readOnly: true,
|
|
15101
|
-
rightIcon: /* @__PURE__ */
|
|
15180
|
+
rightIcon: /* @__PURE__ */ jsx287(
|
|
15102
15181
|
StyledIconButton,
|
|
15103
15182
|
{
|
|
15104
15183
|
colorScheme: isCopied ? "success" : "inherit",
|
|
@@ -15106,7 +15185,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
15106
15185
|
label: "Copy to clipboard",
|
|
15107
15186
|
onClick: handleClick,
|
|
15108
15187
|
variant: "ghost",
|
|
15109
|
-
children: isCopied ? /* @__PURE__ */
|
|
15188
|
+
children: isCopied ? /* @__PURE__ */ jsx287(Icon, { type: "checkmark-circle" }) : /* @__PURE__ */ jsx287(Icon, { type: "save-as-copy" })
|
|
15110
15189
|
}
|
|
15111
15190
|
),
|
|
15112
15191
|
value
|
|
@@ -15117,11 +15196,11 @@ var InputClickToCopy = forwardRef23(
|
|
|
15117
15196
|
InputClickToCopy.displayName = "InputClickToCopy_UI";
|
|
15118
15197
|
|
|
15119
15198
|
// src/components/InputPassword/InputPassword.tsx
|
|
15120
|
-
import { styled as
|
|
15199
|
+
import { styled as styled70 } from "styled-components";
|
|
15121
15200
|
import { forwardRef as forwardRef24, useState as useState22 } from "react";
|
|
15122
15201
|
import { isFunction as isFunction4 } from "@wistia/type-guards";
|
|
15123
|
-
import { jsx as
|
|
15124
|
-
var StyledIconButton2 =
|
|
15202
|
+
import { jsx as jsx288 } from "react/jsx-runtime";
|
|
15203
|
+
var StyledIconButton2 = styled70(IconButton)`
|
|
15125
15204
|
/* override size for icon button since prop gets changed by Input */
|
|
15126
15205
|
height: var(--icon-button-size-sm);
|
|
15127
15206
|
width: var(--icon-button-size-sm);
|
|
@@ -15139,13 +15218,13 @@ var InputPassword = forwardRef24(
|
|
|
15139
15218
|
onVisibilityToggle(newVisibility);
|
|
15140
15219
|
}
|
|
15141
15220
|
};
|
|
15142
|
-
return /* @__PURE__ */
|
|
15221
|
+
return /* @__PURE__ */ jsx288(
|
|
15143
15222
|
Input,
|
|
15144
15223
|
{
|
|
15145
15224
|
...props,
|
|
15146
15225
|
ref,
|
|
15147
15226
|
disabled,
|
|
15148
|
-
rightIcon: /* @__PURE__ */
|
|
15227
|
+
rightIcon: /* @__PURE__ */ jsx288(
|
|
15149
15228
|
StyledIconButton2,
|
|
15150
15229
|
{
|
|
15151
15230
|
disabled,
|
|
@@ -15153,7 +15232,7 @@ var InputPassword = forwardRef24(
|
|
|
15153
15232
|
onClick: handleClick,
|
|
15154
15233
|
tabIndex: disabled ? -1 : 0,
|
|
15155
15234
|
variant: "ghost",
|
|
15156
|
-
children: /* @__PURE__ */
|
|
15235
|
+
children: /* @__PURE__ */ jsx288(Icon, { type: isVisible ? "preview" : "hide" })
|
|
15157
15236
|
}
|
|
15158
15237
|
),
|
|
15159
15238
|
type: isVisible ? "text" : "password"
|
|
@@ -15164,16 +15243,16 @@ var InputPassword = forwardRef24(
|
|
|
15164
15243
|
InputPassword.displayName = "InputPassword_UI";
|
|
15165
15244
|
|
|
15166
15245
|
// src/components/KeyboardShortcut/KeyboardShortcut.tsx
|
|
15167
|
-
import { styled as
|
|
15246
|
+
import { styled as styled71 } from "styled-components";
|
|
15168
15247
|
import { isNotNil as isNotNil29 } from "@wistia/type-guards";
|
|
15169
|
-
import { jsx as
|
|
15170
|
-
var StyledKeyboardShortcut =
|
|
15248
|
+
import { jsx as jsx289, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
15249
|
+
var StyledKeyboardShortcut = styled71.div`
|
|
15171
15250
|
align-items: center;
|
|
15172
15251
|
display: flex;
|
|
15173
15252
|
gap: var(--wui-space-02);
|
|
15174
15253
|
${({ $fullWidth }) => $fullWidth && "width: 100%; justify-content: space-between;"}
|
|
15175
15254
|
`;
|
|
15176
|
-
var StyledKey =
|
|
15255
|
+
var StyledKey = styled71.kbd`
|
|
15177
15256
|
align-items: center;
|
|
15178
15257
|
background: var(--wui-color-bg-surface-secondary);
|
|
15179
15258
|
border-bottom: 1px solid var(--wui-color-border-secondary);
|
|
@@ -15196,11 +15275,11 @@ var StyledKey = styled70.kbd`
|
|
|
15196
15275
|
min-width: 20px;
|
|
15197
15276
|
padding: 0 var(--wui-space-01);
|
|
15198
15277
|
`;
|
|
15199
|
-
var Label2 =
|
|
15278
|
+
var Label2 = styled71.span`
|
|
15200
15279
|
color: var(--wui-color-text);
|
|
15201
15280
|
font-size: 12px;
|
|
15202
15281
|
`;
|
|
15203
|
-
var KeysContainer =
|
|
15282
|
+
var KeysContainer = styled71.div`
|
|
15204
15283
|
display: flex;
|
|
15205
15284
|
gap: var(--wui-space-01);
|
|
15206
15285
|
`;
|
|
@@ -15259,8 +15338,8 @@ var KeyboardShortcut = ({
|
|
|
15259
15338
|
$fullWidth: fullWidth,
|
|
15260
15339
|
...otherProps,
|
|
15261
15340
|
children: [
|
|
15262
|
-
isNotNil29(label) && /* @__PURE__ */
|
|
15263
|
-
/* @__PURE__ */
|
|
15341
|
+
isNotNil29(label) && /* @__PURE__ */ jsx289(Label2, { children: label }),
|
|
15342
|
+
/* @__PURE__ */ jsx289(KeysContainer, { children: (Array.isArray(keyboardKeys) ? keyboardKeys : [keyboardKeys]).map((keyboardKey, index) => /* @__PURE__ */ jsx289(
|
|
15264
15343
|
StyledKey,
|
|
15265
15344
|
{
|
|
15266
15345
|
children: keyToString(keyboardKey)
|
|
@@ -15274,25 +15353,25 @@ KeyboardShortcut.displayName = "KeyboardShortcut_UI";
|
|
|
15274
15353
|
|
|
15275
15354
|
// src/components/List/List.tsx
|
|
15276
15355
|
import { isNotNil as isNotNil30 } from "@wistia/type-guards";
|
|
15277
|
-
import { styled as
|
|
15356
|
+
import { styled as styled73, css as css37 } from "styled-components";
|
|
15278
15357
|
|
|
15279
15358
|
// src/components/List/ListItem.tsx
|
|
15280
|
-
import { styled as
|
|
15359
|
+
import { styled as styled72 } from "styled-components";
|
|
15281
15360
|
import { isNil as isNil17 } from "@wistia/type-guards";
|
|
15282
|
-
import { jsx as
|
|
15283
|
-
var ListItemComponent =
|
|
15361
|
+
import { jsx as jsx290 } from "react/jsx-runtime";
|
|
15362
|
+
var ListItemComponent = styled72.li`
|
|
15284
15363
|
margin-bottom: var(--wui-space-02);
|
|
15285
15364
|
`;
|
|
15286
15365
|
var ListItem = ({ children }) => {
|
|
15287
15366
|
if (isNil17(children)) {
|
|
15288
15367
|
return null;
|
|
15289
15368
|
}
|
|
15290
|
-
return /* @__PURE__ */
|
|
15369
|
+
return /* @__PURE__ */ jsx290(ListItemComponent, { children });
|
|
15291
15370
|
};
|
|
15292
15371
|
ListItem.displayName = "ListItem_UI";
|
|
15293
15372
|
|
|
15294
15373
|
// src/components/List/List.tsx
|
|
15295
|
-
import { jsx as
|
|
15374
|
+
import { jsx as jsx291, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
15296
15375
|
var spacesStyle = css37`
|
|
15297
15376
|
overflow: hidden;
|
|
15298
15377
|
padding-left: 0;
|
|
@@ -15351,7 +15430,7 @@ var unbulletedStyle = css37`
|
|
|
15351
15430
|
list-style: none;
|
|
15352
15431
|
padding-left: 0;
|
|
15353
15432
|
`;
|
|
15354
|
-
var ListComponent =
|
|
15433
|
+
var ListComponent = styled73.ul`
|
|
15355
15434
|
list-style-position: outside;
|
|
15356
15435
|
margin: 0 0 var(--wui-space-01);
|
|
15357
15436
|
padding: 0 0 0 var(--wui-space-04);
|
|
@@ -15378,7 +15457,7 @@ var ListComponent = styled72.ul`
|
|
|
15378
15457
|
`;
|
|
15379
15458
|
var renderListComponent = (listItems, variant, { ...otherProps }) => {
|
|
15380
15459
|
const elementType = variant === "ordered" ? "ol" : "ul";
|
|
15381
|
-
return /* @__PURE__ */
|
|
15460
|
+
return /* @__PURE__ */ jsx291(
|
|
15382
15461
|
ListComponent,
|
|
15383
15462
|
{
|
|
15384
15463
|
as: elementType,
|
|
@@ -15403,7 +15482,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
|
|
|
15403
15482
|
if (Array.isArray(item)) {
|
|
15404
15483
|
return null;
|
|
15405
15484
|
}
|
|
15406
|
-
return /* @__PURE__ */
|
|
15485
|
+
return /* @__PURE__ */ jsx291(ListItem, { children: item }, key);
|
|
15407
15486
|
});
|
|
15408
15487
|
return renderListComponent(items, variant, otherProps);
|
|
15409
15488
|
};
|
|
@@ -15431,9 +15510,9 @@ var List = ({
|
|
|
15431
15510
|
List.displayName = "List_UI";
|
|
15432
15511
|
|
|
15433
15512
|
// src/components/Mark/Mark.tsx
|
|
15434
|
-
import { styled as
|
|
15435
|
-
import { jsx as
|
|
15436
|
-
var StyledMark =
|
|
15513
|
+
import { styled as styled74 } from "styled-components";
|
|
15514
|
+
import { jsx as jsx292 } from "react/jsx-runtime";
|
|
15515
|
+
var StyledMark = styled74.mark`
|
|
15437
15516
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
15438
15517
|
background-color: var(--wui-color-bg-surface-tertiary);
|
|
15439
15518
|
color: var(--wui-color-text);
|
|
@@ -15441,7 +15520,7 @@ var StyledMark = styled73.mark`
|
|
|
15441
15520
|
padding-inline: 0.1em;
|
|
15442
15521
|
margin-inline: -0.1em;
|
|
15443
15522
|
`;
|
|
15444
|
-
var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */
|
|
15523
|
+
var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */ jsx292(
|
|
15445
15524
|
StyledMark,
|
|
15446
15525
|
{
|
|
15447
15526
|
$colorScheme: colorScheme,
|
|
@@ -15453,36 +15532,36 @@ Mark.displayName = "Mark_UI";
|
|
|
15453
15532
|
|
|
15454
15533
|
// src/components/Modal/Modal.tsx
|
|
15455
15534
|
import { forwardRef as forwardRef26 } from "react";
|
|
15456
|
-
import { styled as
|
|
15535
|
+
import { styled as styled79 } from "styled-components";
|
|
15457
15536
|
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
15458
15537
|
import { isNotNil as isNotNil32 } from "@wistia/type-guards";
|
|
15459
15538
|
|
|
15460
15539
|
// src/components/Modal/ModalHeader.tsx
|
|
15461
|
-
import { styled as
|
|
15540
|
+
import { styled as styled76 } from "styled-components";
|
|
15462
15541
|
import { Title as DialogTitle } from "@radix-ui/react-dialog";
|
|
15463
15542
|
|
|
15464
15543
|
// src/components/Modal/ModalCloseButton.tsx
|
|
15465
|
-
import { styled as
|
|
15544
|
+
import { styled as styled75 } from "styled-components";
|
|
15466
15545
|
import { Close as DialogClose } from "@radix-ui/react-dialog";
|
|
15467
|
-
import { jsx as
|
|
15468
|
-
var CloseButton =
|
|
15546
|
+
import { jsx as jsx293 } from "react/jsx-runtime";
|
|
15547
|
+
var CloseButton = styled75(DialogClose)`
|
|
15469
15548
|
align-self: start;
|
|
15470
15549
|
`;
|
|
15471
15550
|
var ModalCloseButton = () => {
|
|
15472
|
-
return /* @__PURE__ */
|
|
15551
|
+
return /* @__PURE__ */ jsx293(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx293(
|
|
15473
15552
|
IconButton,
|
|
15474
15553
|
{
|
|
15475
15554
|
label: "Dismiss modal",
|
|
15476
15555
|
size: "sm",
|
|
15477
15556
|
variant: "ghost",
|
|
15478
|
-
children: /* @__PURE__ */
|
|
15557
|
+
children: /* @__PURE__ */ jsx293(Icon, { type: "close" })
|
|
15479
15558
|
}
|
|
15480
15559
|
) });
|
|
15481
15560
|
};
|
|
15482
15561
|
|
|
15483
15562
|
// src/components/Modal/ModalHeader.tsx
|
|
15484
|
-
import { jsx as
|
|
15485
|
-
var Header =
|
|
15563
|
+
import { jsx as jsx294, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
15564
|
+
var Header = styled76.header`
|
|
15486
15565
|
display: flex;
|
|
15487
15566
|
order: 1;
|
|
15488
15567
|
padding: 0 var(--wui-space-05);
|
|
@@ -15502,7 +15581,7 @@ var Header = styled75.header`
|
|
|
15502
15581
|
top: var(--wui-space-03);
|
|
15503
15582
|
}
|
|
15504
15583
|
`;
|
|
15505
|
-
var Title =
|
|
15584
|
+
var Title = styled76(DialogTitle)`
|
|
15506
15585
|
font-family: var(--wui-typography-heading-2-family);
|
|
15507
15586
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
15508
15587
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -15513,7 +15592,7 @@ var ModalHeader = ({
|
|
|
15513
15592
|
hideTitle,
|
|
15514
15593
|
hideCloseButton
|
|
15515
15594
|
}) => {
|
|
15516
|
-
const TitleComponent = hideTitle ? /* @__PURE__ */
|
|
15595
|
+
const TitleComponent = hideTitle ? /* @__PURE__ */ jsx294(ScreenReaderOnly, { children: /* @__PURE__ */ jsx294(Title, { children: title }) }) : /* @__PURE__ */ jsx294(Title, { children: title });
|
|
15517
15596
|
return /* @__PURE__ */ jsxs49(
|
|
15518
15597
|
Header,
|
|
15519
15598
|
{
|
|
@@ -15521,7 +15600,7 @@ var ModalHeader = ({
|
|
|
15521
15600
|
$hideTitle: hideTitle,
|
|
15522
15601
|
children: [
|
|
15523
15602
|
TitleComponent,
|
|
15524
|
-
hideCloseButton ? null : /* @__PURE__ */
|
|
15603
|
+
hideCloseButton ? null : /* @__PURE__ */ jsx294(ModalCloseButton, {})
|
|
15525
15604
|
]
|
|
15526
15605
|
}
|
|
15527
15606
|
);
|
|
@@ -15529,7 +15608,7 @@ var ModalHeader = ({
|
|
|
15529
15608
|
|
|
15530
15609
|
// src/components/Modal/ModalContent.tsx
|
|
15531
15610
|
import { forwardRef as forwardRef25 } from "react";
|
|
15532
|
-
import { styled as
|
|
15611
|
+
import { styled as styled77, css as css38, keyframes as keyframes4 } from "styled-components";
|
|
15533
15612
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
15534
15613
|
|
|
15535
15614
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -15552,7 +15631,7 @@ var useFocusRestore = () => {
|
|
|
15552
15631
|
};
|
|
15553
15632
|
|
|
15554
15633
|
// src/components/Modal/ModalContent.tsx
|
|
15555
|
-
import { jsx as
|
|
15634
|
+
import { jsx as jsx295 } from "react/jsx-runtime";
|
|
15556
15635
|
var modalEnter = keyframes4`
|
|
15557
15636
|
from {
|
|
15558
15637
|
opacity: 0;
|
|
@@ -15650,7 +15729,7 @@ var positionStyleMap = {
|
|
|
15650
15729
|
"fixed-top": fixedTopModalStyles,
|
|
15651
15730
|
"right-side-panel": rightSidePanelModalStyles
|
|
15652
15731
|
};
|
|
15653
|
-
var StyledModalContent =
|
|
15732
|
+
var StyledModalContent = styled77(DialogContent)`
|
|
15654
15733
|
position: fixed;
|
|
15655
15734
|
display: flex;
|
|
15656
15735
|
flex-direction: column;
|
|
@@ -15680,7 +15759,7 @@ var StyledModalContent = styled76(DialogContent)`
|
|
|
15680
15759
|
var ModalContent = forwardRef25(
|
|
15681
15760
|
({ width, positionVariant = "fixed-top", children, ...props }, ref) => {
|
|
15682
15761
|
useFocusRestore();
|
|
15683
|
-
return /* @__PURE__ */
|
|
15762
|
+
return /* @__PURE__ */ jsx295(
|
|
15684
15763
|
StyledModalContent,
|
|
15685
15764
|
{
|
|
15686
15765
|
ref,
|
|
@@ -15696,7 +15775,7 @@ var ModalContent = forwardRef25(
|
|
|
15696
15775
|
|
|
15697
15776
|
// src/components/Modal/ModalOverlay.tsx
|
|
15698
15777
|
import { DialogOverlay } from "@radix-ui/react-dialog";
|
|
15699
|
-
import { styled as
|
|
15778
|
+
import { styled as styled78, keyframes as keyframes5 } from "styled-components";
|
|
15700
15779
|
var backdropShow = keyframes5`
|
|
15701
15780
|
from {
|
|
15702
15781
|
opacity: 0;
|
|
@@ -15715,7 +15794,7 @@ var backdropHide = keyframes5`
|
|
|
15715
15794
|
opacity: 0;
|
|
15716
15795
|
}
|
|
15717
15796
|
`;
|
|
15718
|
-
var ModalOverlay =
|
|
15797
|
+
var ModalOverlay = styled78(DialogOverlay)`
|
|
15719
15798
|
animation: ${backdropShow} var(--wui-motion-duration-02);
|
|
15720
15799
|
background: var(--wui-color-backdrop);
|
|
15721
15800
|
inset: 0;
|
|
@@ -15728,20 +15807,20 @@ var ModalOverlay = styled77(DialogOverlay)`
|
|
|
15728
15807
|
`;
|
|
15729
15808
|
|
|
15730
15809
|
// src/components/Modal/Modal.tsx
|
|
15731
|
-
import { jsx as
|
|
15810
|
+
import { jsx as jsx296, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
15732
15811
|
var DEFAULT_MODAL_WIDTH = "532px";
|
|
15733
|
-
var ModalBody =
|
|
15812
|
+
var ModalBody = styled79.div`
|
|
15734
15813
|
flex-direction: column;
|
|
15735
15814
|
display: flex;
|
|
15736
15815
|
flex: 1 0 0;
|
|
15737
15816
|
padding: 0 var(--wui-space-05);
|
|
15738
15817
|
`;
|
|
15739
|
-
var ModalScrollArea =
|
|
15818
|
+
var ModalScrollArea = styled79.div`
|
|
15740
15819
|
order: 2;
|
|
15741
15820
|
max-height: 90vh;
|
|
15742
15821
|
overflow-y: auto;
|
|
15743
15822
|
`;
|
|
15744
|
-
var ModalFooter =
|
|
15823
|
+
var ModalFooter = styled79.footer`
|
|
15745
15824
|
padding: 0 var(--wui-space-05);
|
|
15746
15825
|
order: 3;
|
|
15747
15826
|
`;
|
|
@@ -15759,7 +15838,7 @@ var Modal = forwardRef26(
|
|
|
15759
15838
|
width = DEFAULT_MODAL_WIDTH,
|
|
15760
15839
|
...props
|
|
15761
15840
|
}, ref) => {
|
|
15762
|
-
return /* @__PURE__ */
|
|
15841
|
+
return /* @__PURE__ */ jsx296(
|
|
15763
15842
|
DialogRoot,
|
|
15764
15843
|
{
|
|
15765
15844
|
onOpenChange: (open2) => {
|
|
@@ -15769,7 +15848,7 @@ var Modal = forwardRef26(
|
|
|
15769
15848
|
},
|
|
15770
15849
|
open: isOpen,
|
|
15771
15850
|
children: /* @__PURE__ */ jsxs50(DialogPortal, { children: [
|
|
15772
|
-
/* @__PURE__ */
|
|
15851
|
+
/* @__PURE__ */ jsx296(ModalOverlay, {}),
|
|
15773
15852
|
/* @__PURE__ */ jsxs50(
|
|
15774
15853
|
ModalContent,
|
|
15775
15854
|
{
|
|
@@ -15786,9 +15865,9 @@ var Modal = forwardRef26(
|
|
|
15786
15865
|
width,
|
|
15787
15866
|
...props,
|
|
15788
15867
|
children: [
|
|
15789
|
-
/* @__PURE__ */
|
|
15790
|
-
isNotNil32(footer) ? /* @__PURE__ */
|
|
15791
|
-
hideCloseButton && hideTitle ? null : /* @__PURE__ */
|
|
15868
|
+
/* @__PURE__ */ jsx296(ModalScrollArea, { children: /* @__PURE__ */ jsx296(ModalBody, { children }) }),
|
|
15869
|
+
isNotNil32(footer) ? /* @__PURE__ */ jsx296(ModalFooter, { children: footer }) : null,
|
|
15870
|
+
hideCloseButton && hideTitle ? null : /* @__PURE__ */ jsx296(
|
|
15792
15871
|
ModalHeader,
|
|
15793
15872
|
{
|
|
15794
15873
|
hideCloseButton,
|
|
@@ -15807,9 +15886,9 @@ var Modal = forwardRef26(
|
|
|
15807
15886
|
Modal.displayName = "Modal_UI";
|
|
15808
15887
|
|
|
15809
15888
|
// src/components/Modal/ModalCallouts.tsx
|
|
15810
|
-
import { jsx as
|
|
15889
|
+
import { jsx as jsx297, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
15811
15890
|
var ModalCallouts = ({ children }) => {
|
|
15812
|
-
return /* @__PURE__ */
|
|
15891
|
+
return /* @__PURE__ */ jsx297(
|
|
15813
15892
|
Stack,
|
|
15814
15893
|
{
|
|
15815
15894
|
direction: "horizontal",
|
|
@@ -15822,7 +15901,7 @@ ModalCallouts.displayName = "ModalCallouts_UI";
|
|
|
15822
15901
|
var ModalCallout = ({ title, image, children }) => {
|
|
15823
15902
|
return /* @__PURE__ */ jsxs51(Stack, { direction: "vertical", children: [
|
|
15824
15903
|
image,
|
|
15825
|
-
/* @__PURE__ */
|
|
15904
|
+
/* @__PURE__ */ jsx297(Heading, { variant: "heading4", children: title }),
|
|
15826
15905
|
children
|
|
15827
15906
|
] });
|
|
15828
15907
|
};
|
|
@@ -15830,7 +15909,7 @@ ModalCallout.displayName = "ModalCallout_UI";
|
|
|
15830
15909
|
|
|
15831
15910
|
// src/components/Popover/Popover.tsx
|
|
15832
15911
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
15833
|
-
import { styled as
|
|
15912
|
+
import { styled as styled81, css as css40 } from "styled-components";
|
|
15834
15913
|
|
|
15835
15914
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
15836
15915
|
import { isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
@@ -15840,9 +15919,9 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
15840
15919
|
|
|
15841
15920
|
// src/components/Popover/PopoverArrow.tsx
|
|
15842
15921
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
15843
|
-
import { styled as
|
|
15844
|
-
import { jsx as
|
|
15845
|
-
var StyledPath =
|
|
15922
|
+
import { styled as styled80, css as css39, keyframes as keyframes6 } from "styled-components";
|
|
15923
|
+
import { jsx as jsx298, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
15924
|
+
var StyledPath = styled80.path`
|
|
15846
15925
|
fill: var(--wui-color-border-secondary);
|
|
15847
15926
|
`;
|
|
15848
15927
|
var circleAnimation = keyframes6`
|
|
@@ -15853,7 +15932,7 @@ var circleAnimation = keyframes6`
|
|
|
15853
15932
|
opacity: 0;
|
|
15854
15933
|
}
|
|
15855
15934
|
`;
|
|
15856
|
-
var StyledCircle =
|
|
15935
|
+
var StyledCircle = styled80.circle`
|
|
15857
15936
|
stroke: var(--wui-color-border-active);
|
|
15858
15937
|
animation-duration: 2s;
|
|
15859
15938
|
animation-iteration-count: infinite;
|
|
@@ -15880,7 +15959,7 @@ var StyledCircle = styled79.circle`
|
|
|
15880
15959
|
}
|
|
15881
15960
|
`;
|
|
15882
15961
|
var PopoverArrow = ({ isAnimated }) => {
|
|
15883
|
-
return /* @__PURE__ */
|
|
15962
|
+
return /* @__PURE__ */ jsx298(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs52(
|
|
15884
15963
|
"svg",
|
|
15885
15964
|
{
|
|
15886
15965
|
fill: "none",
|
|
@@ -15889,8 +15968,8 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
15889
15968
|
width: "48",
|
|
15890
15969
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15891
15970
|
children: [
|
|
15892
|
-
/* @__PURE__ */
|
|
15893
|
-
/* @__PURE__ */
|
|
15971
|
+
/* @__PURE__ */ jsx298(StyledPath, { d: "M24 26.6667C21.0545 26.6667 18.6667 29.0545 18.6667 32C18.6667 34.9455 21.0545 37.3333 24 37.3333C26.9455 37.3333 29.3333 34.9455 29.3333 32C29.3333 29.0545 26.9455 26.6667 24 26.6667ZM23 0V32H25V0H23Z" }),
|
|
15972
|
+
/* @__PURE__ */ jsx298(
|
|
15894
15973
|
StyledCircle,
|
|
15895
15974
|
{
|
|
15896
15975
|
$isAnimated: isAnimated,
|
|
@@ -15901,7 +15980,7 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
15901
15980
|
strokeWidth: "4"
|
|
15902
15981
|
}
|
|
15903
15982
|
),
|
|
15904
|
-
/* @__PURE__ */
|
|
15983
|
+
/* @__PURE__ */ jsx298(
|
|
15905
15984
|
StyledCircle,
|
|
15906
15985
|
{
|
|
15907
15986
|
$isAnimated: isAnimated,
|
|
@@ -15919,8 +15998,8 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
15919
15998
|
PopoverArrow.displayName = "PopoverArrow_UI";
|
|
15920
15999
|
|
|
15921
16000
|
// src/components/Popover/Popover.tsx
|
|
15922
|
-
import { jsx as
|
|
15923
|
-
var StyledContent2 =
|
|
16001
|
+
import { jsx as jsx299, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
16002
|
+
var StyledContent2 = styled81(Content2)`
|
|
15924
16003
|
z-index: var(--wui-zindex-popover);
|
|
15925
16004
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
15926
16005
|
${({ $unstyled }) => !$unstyled && css40`
|
|
@@ -15960,8 +16039,8 @@ var Popover = ({
|
|
|
15960
16039
|
"--wui-popover-max-height": maxHeight
|
|
15961
16040
|
};
|
|
15962
16041
|
return /* @__PURE__ */ jsxs53(Root2, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
15963
|
-
/* @__PURE__ */
|
|
15964
|
-
/* @__PURE__ */
|
|
16042
|
+
/* @__PURE__ */ jsx299(Trigger2, { asChild: true, children: trigger }),
|
|
16043
|
+
/* @__PURE__ */ jsx299(Portal, { children: /* @__PURE__ */ jsxs53(
|
|
15965
16044
|
StyledContent2,
|
|
15966
16045
|
{
|
|
15967
16046
|
$colorScheme: colorScheme,
|
|
@@ -15970,17 +16049,17 @@ var Popover = ({
|
|
|
15970
16049
|
$unstyled: unstyled,
|
|
15971
16050
|
style,
|
|
15972
16051
|
children: [
|
|
15973
|
-
!hideCloseButton && /* @__PURE__ */
|
|
16052
|
+
!hideCloseButton && /* @__PURE__ */ jsx299(Close, { asChild: true, children: /* @__PURE__ */ jsx299(
|
|
15974
16053
|
IconButton,
|
|
15975
16054
|
{
|
|
15976
16055
|
"data-wui-popover-close": true,
|
|
15977
16056
|
label: "Close",
|
|
15978
16057
|
variant: "ghost",
|
|
15979
|
-
children: /* @__PURE__ */
|
|
16058
|
+
children: /* @__PURE__ */ jsx299(Icon, { type: "close" })
|
|
15980
16059
|
}
|
|
15981
16060
|
) }),
|
|
15982
|
-
withArrow ? /* @__PURE__ */
|
|
15983
|
-
/* @__PURE__ */
|
|
16061
|
+
withArrow ? /* @__PURE__ */ jsx299(PopoverArrow, { isAnimated }) : null,
|
|
16062
|
+
/* @__PURE__ */ jsx299("div", { children })
|
|
15984
16063
|
]
|
|
15985
16064
|
}
|
|
15986
16065
|
) })
|
|
@@ -15989,11 +16068,11 @@ var Popover = ({
|
|
|
15989
16068
|
Popover.displayName = "Popover_UI";
|
|
15990
16069
|
|
|
15991
16070
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
15992
|
-
import { styled as
|
|
16071
|
+
import { styled as styled82 } from "styled-components";
|
|
15993
16072
|
import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
|
|
15994
16073
|
import { isNotNil as isNotNil34 } from "@wistia/type-guards";
|
|
15995
|
-
import { jsx as
|
|
15996
|
-
var ProgressBarWrapper =
|
|
16074
|
+
import { jsx as jsx300, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
16075
|
+
var ProgressBarWrapper = styled82.div`
|
|
15997
16076
|
--progress-bar-height: 8px;
|
|
15998
16077
|
|
|
15999
16078
|
display: flex;
|
|
@@ -16007,7 +16086,7 @@ var getTranslateValue = (progress, max) => {
|
|
|
16007
16086
|
const progressPercentage = progress / max * 100;
|
|
16008
16087
|
return `translateX(-${100 - progressPercentage}%)`;
|
|
16009
16088
|
};
|
|
16010
|
-
var ProgressBarLabel =
|
|
16089
|
+
var ProgressBarLabel = styled82.div`
|
|
16011
16090
|
display: flex;
|
|
16012
16091
|
line-height: var(--wui-typography-label-3-line-height);
|
|
16013
16092
|
font-size: var(--wui-typography-label-3-size);
|
|
@@ -16015,7 +16094,7 @@ var ProgressBarLabel = styled81.div`
|
|
|
16015
16094
|
color: var(--wui-color-text-secondary);
|
|
16016
16095
|
flex-shrink: 0;
|
|
16017
16096
|
`;
|
|
16018
|
-
var StyledProgressIndicator =
|
|
16097
|
+
var StyledProgressIndicator = styled82(ProgressIndicator)`
|
|
16019
16098
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
16020
16099
|
background-color: var(--wui-color-bg-fill);
|
|
16021
16100
|
width: 100%;
|
|
@@ -16025,7 +16104,7 @@ var StyledProgressIndicator = styled81(ProgressIndicator)`
|
|
|
16025
16104
|
transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
|
|
16026
16105
|
transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
|
|
16027
16106
|
`;
|
|
16028
|
-
var StyledProgressBar =
|
|
16107
|
+
var StyledProgressBar = styled82(ProgressRoot)`
|
|
16029
16108
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
16030
16109
|
position: relative;
|
|
16031
16110
|
overflow: hidden;
|
|
@@ -16047,15 +16126,15 @@ var ProgressBar = ({
|
|
|
16047
16126
|
...props
|
|
16048
16127
|
}) => {
|
|
16049
16128
|
return /* @__PURE__ */ jsxs54(ProgressBarWrapper, { children: [
|
|
16050
|
-
isNotNil34(labelLeft) ? /* @__PURE__ */
|
|
16051
|
-
/* @__PURE__ */
|
|
16129
|
+
isNotNil34(labelLeft) ? /* @__PURE__ */ jsx300(ProgressBarLabel, { children: labelLeft }) : null,
|
|
16130
|
+
/* @__PURE__ */ jsx300(
|
|
16052
16131
|
StyledProgressBar,
|
|
16053
16132
|
{
|
|
16054
16133
|
$colorScheme: colorScheme,
|
|
16055
16134
|
max,
|
|
16056
16135
|
value: progress,
|
|
16057
16136
|
...props,
|
|
16058
|
-
children: /* @__PURE__ */
|
|
16137
|
+
children: /* @__PURE__ */ jsx300(
|
|
16059
16138
|
StyledProgressIndicator,
|
|
16060
16139
|
{
|
|
16061
16140
|
$colorScheme: colorScheme,
|
|
@@ -16065,7 +16144,7 @@ var ProgressBar = ({
|
|
|
16065
16144
|
)
|
|
16066
16145
|
}
|
|
16067
16146
|
),
|
|
16068
|
-
isNotNil34(labelRight) ? /* @__PURE__ */
|
|
16147
|
+
isNotNil34(labelRight) ? /* @__PURE__ */ jsx300(ProgressBarLabel, { children: labelRight }) : null
|
|
16069
16148
|
] });
|
|
16070
16149
|
};
|
|
16071
16150
|
ProgressBar.displayName = "ProgressBar_UI";
|
|
@@ -16073,8 +16152,8 @@ ProgressBar.displayName = "ProgressBar_UI";
|
|
|
16073
16152
|
// src/components/Radio/Radio.tsx
|
|
16074
16153
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
|
|
16075
16154
|
import { forwardRef as forwardRef27, useId as useId5 } from "react";
|
|
16076
|
-
import { styled as
|
|
16077
|
-
import { jsx as
|
|
16155
|
+
import { styled as styled83, css as css41 } from "styled-components";
|
|
16156
|
+
import { jsx as jsx301, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
16078
16157
|
var sizeSmall2 = css41`
|
|
16079
16158
|
--wui-radio-size: 14px;
|
|
16080
16159
|
--wui-radio-icon-size: 7px;
|
|
@@ -16092,7 +16171,7 @@ var getSizeCss3 = (size) => {
|
|
|
16092
16171
|
if (size === "lg") return sizeLarge2;
|
|
16093
16172
|
return sizeMedium2;
|
|
16094
16173
|
};
|
|
16095
|
-
var StyledRadioWrapper =
|
|
16174
|
+
var StyledRadioWrapper = styled83.div`
|
|
16096
16175
|
--wui-radio-background-color: var(--wui-color-bg-surface);
|
|
16097
16176
|
--wui-radio-border-color: var(--wui-color-border-secondary);
|
|
16098
16177
|
--wui-radio-icon-color: transparent;
|
|
@@ -16126,7 +16205,7 @@ var StyledRadioWrapper = styled82.div`
|
|
|
16126
16205
|
/* TODO this solves a problem but potentially causes and a11y issue */
|
|
16127
16206
|
user-select: none;
|
|
16128
16207
|
`;
|
|
16129
|
-
var StyledRadioInput =
|
|
16208
|
+
var StyledRadioInput = styled83.div`
|
|
16130
16209
|
${({ $size }) => getSizeCss3($size)}
|
|
16131
16210
|
width: var(--wui-radio-size);
|
|
16132
16211
|
height: var(--wui-radio-size);
|
|
@@ -16152,7 +16231,7 @@ var StyledRadioInput = styled82.div`
|
|
|
16152
16231
|
transform: translate(-50%, -50%);
|
|
16153
16232
|
}
|
|
16154
16233
|
`;
|
|
16155
|
-
var StyledHiddenRadioInput =
|
|
16234
|
+
var StyledHiddenRadioInput = styled83.input`
|
|
16156
16235
|
${visuallyHiddenStyle}
|
|
16157
16236
|
`;
|
|
16158
16237
|
var Radio = forwardRef27(
|
|
@@ -16186,7 +16265,7 @@ var Radio = forwardRef27(
|
|
|
16186
16265
|
$hideLabel: hideLabel,
|
|
16187
16266
|
"aria-invalid": props["aria-invalid"],
|
|
16188
16267
|
children: [
|
|
16189
|
-
/* @__PURE__ */
|
|
16268
|
+
/* @__PURE__ */ jsx301(
|
|
16190
16269
|
StyledHiddenRadioInput,
|
|
16191
16270
|
{
|
|
16192
16271
|
...props,
|
|
@@ -16201,10 +16280,10 @@ var Radio = forwardRef27(
|
|
|
16201
16280
|
value
|
|
16202
16281
|
}
|
|
16203
16282
|
),
|
|
16204
|
-
/* @__PURE__ */
|
|
16283
|
+
/* @__PURE__ */ jsx301(
|
|
16205
16284
|
FormControlLabel,
|
|
16206
16285
|
{
|
|
16207
|
-
controlSlot: /* @__PURE__ */
|
|
16286
|
+
controlSlot: /* @__PURE__ */ jsx301(StyledRadioInput, { $size: size }),
|
|
16208
16287
|
description,
|
|
16209
16288
|
disabled,
|
|
16210
16289
|
hideLabel,
|
|
@@ -16224,9 +16303,9 @@ import { forwardRef as forwardRef29 } from "react";
|
|
|
16224
16303
|
|
|
16225
16304
|
// src/components/RadioCard/RadioCardRoot.tsx
|
|
16226
16305
|
import { forwardRef as forwardRef28, useId as useId6 } from "react";
|
|
16227
|
-
import { styled as
|
|
16306
|
+
import { styled as styled84, css as css42 } from "styled-components";
|
|
16228
16307
|
import { isNonEmptyString as isNonEmptyString8, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
16229
|
-
import { jsx as
|
|
16308
|
+
import { jsx as jsx302, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
16230
16309
|
var checkedStyles = css42`
|
|
16231
16310
|
--wui-radio-card-border-color: var(--wui-color-focus-ring);
|
|
16232
16311
|
--wui-color-icon: var(--wui-color-icon-selected);
|
|
@@ -16276,7 +16355,7 @@ var imageCoverStyles = css42`
|
|
|
16276
16355
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
16277
16356
|
}
|
|
16278
16357
|
`;
|
|
16279
|
-
var StyledCard2 =
|
|
16358
|
+
var StyledCard2 = styled84.label`
|
|
16280
16359
|
--wui-radio-card-border-color: var(--wui-color-border-secondary);
|
|
16281
16360
|
--wui-radio-card-background-color: var(--wui-color-bg-surface);
|
|
16282
16361
|
--wui-radio-card-cursor: pointer;
|
|
@@ -16330,7 +16409,7 @@ var StyledCard2 = styled83.label`
|
|
|
16330
16409
|
}
|
|
16331
16410
|
}
|
|
16332
16411
|
`;
|
|
16333
|
-
var StyledHiddenInput =
|
|
16412
|
+
var StyledHiddenInput = styled84.input`
|
|
16334
16413
|
${visuallyHiddenStyle}
|
|
16335
16414
|
`;
|
|
16336
16415
|
var RadioCardRoot = forwardRef28(
|
|
@@ -16362,7 +16441,7 @@ var RadioCardRoot = forwardRef28(
|
|
|
16362
16441
|
$padding: padding,
|
|
16363
16442
|
htmlFor: computedId,
|
|
16364
16443
|
children: [
|
|
16365
|
-
/* @__PURE__ */
|
|
16444
|
+
/* @__PURE__ */ jsx302(
|
|
16366
16445
|
StyledHiddenInput,
|
|
16367
16446
|
{
|
|
16368
16447
|
...props,
|
|
@@ -16385,12 +16464,12 @@ var RadioCardRoot = forwardRef28(
|
|
|
16385
16464
|
RadioCardRoot.displayName = "RadioCardRoot_UI";
|
|
16386
16465
|
|
|
16387
16466
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
16388
|
-
import { styled as
|
|
16467
|
+
import { styled as styled86 } from "styled-components";
|
|
16389
16468
|
import { isNotNil as isNotNil35 } from "@wistia/type-guards";
|
|
16390
16469
|
|
|
16391
16470
|
// src/components/RadioCard/RadioCardIndicator.tsx
|
|
16392
|
-
import { styled as
|
|
16393
|
-
var RadioCardIndicator =
|
|
16471
|
+
import { styled as styled85 } from "styled-components";
|
|
16472
|
+
var RadioCardIndicator = styled85.div`
|
|
16394
16473
|
--wui-radio-card-indicator-size: 14px;
|
|
16395
16474
|
--wui-radio-card-indicator-background-color: var(--wui-color-bg-surface);
|
|
16396
16475
|
--wui-radio-card-indicator-fill-color: var(--wui-color-bg-fill);
|
|
@@ -16439,16 +16518,16 @@ var RadioCardIndicator = styled84.div`
|
|
|
16439
16518
|
RadioCardIndicator.displayName = "RadioCardIndicator_UI";
|
|
16440
16519
|
|
|
16441
16520
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
16442
|
-
import { jsx as
|
|
16443
|
-
var StyledCardContent =
|
|
16521
|
+
import { jsx as jsx303, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
16522
|
+
var StyledCardContent = styled86.div`
|
|
16444
16523
|
display: grid;
|
|
16445
16524
|
grid-auto-flow: column;
|
|
16446
16525
|
gap: var(--wui-space-02);
|
|
16447
16526
|
`;
|
|
16448
|
-
var StyledCardIcon =
|
|
16527
|
+
var StyledCardIcon = styled86.div`
|
|
16449
16528
|
display: contents;
|
|
16450
16529
|
`;
|
|
16451
|
-
var StyledIndicatorContainer =
|
|
16530
|
+
var StyledIndicatorContainer = styled86.div`
|
|
16452
16531
|
height: ${({ $hasIcon }) => $hasIcon ? "24px" : "16px"};
|
|
16453
16532
|
display: flex;
|
|
16454
16533
|
align-items: center;
|
|
@@ -16460,17 +16539,17 @@ var RadioCardDefaultLayout = ({
|
|
|
16460
16539
|
showIndicator = true
|
|
16461
16540
|
}) => {
|
|
16462
16541
|
return /* @__PURE__ */ jsxs57(StyledCardContent, { children: [
|
|
16463
|
-
showIndicator ? /* @__PURE__ */
|
|
16542
|
+
showIndicator ? /* @__PURE__ */ jsx303(StyledIndicatorContainer, { $hasIcon: isNotNil35(icon), children: /* @__PURE__ */ jsx303(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
|
|
16464
16543
|
/* @__PURE__ */ jsxs57(Stack, { gap: "space-02", children: [
|
|
16465
|
-
isNotNil35(icon) && /* @__PURE__ */
|
|
16544
|
+
isNotNil35(icon) && /* @__PURE__ */ jsx303(StyledCardIcon, { "data-wui-radio-card-icon": true, children: icon }),
|
|
16466
16545
|
/* @__PURE__ */ jsxs57(
|
|
16467
16546
|
Stack,
|
|
16468
16547
|
{
|
|
16469
16548
|
gap: "space-01",
|
|
16470
16549
|
style: isNotNil35(icon) ? { paddingLeft: 2 } : void 0,
|
|
16471
16550
|
children: [
|
|
16472
|
-
isNotNil35(label) && /* @__PURE__ */
|
|
16473
|
-
isNotNil35(description) && /* @__PURE__ */
|
|
16551
|
+
isNotNil35(label) && /* @__PURE__ */ jsx303(Text, { variant: "label3", children: /* @__PURE__ */ jsx303("strong", { children: label }) }),
|
|
16552
|
+
isNotNil35(description) && /* @__PURE__ */ jsx303(
|
|
16474
16553
|
Text,
|
|
16475
16554
|
{
|
|
16476
16555
|
prominence: "secondary",
|
|
@@ -16487,22 +16566,22 @@ var RadioCardDefaultLayout = ({
|
|
|
16487
16566
|
RadioCardDefaultLayout.displayName = "RadioCardDefaultLayout_UI";
|
|
16488
16567
|
|
|
16489
16568
|
// src/components/RadioCard/RadioCardChildrenContainer.tsx
|
|
16490
|
-
import { styled as
|
|
16491
|
-
var RadioCardChildrenContainer =
|
|
16569
|
+
import { styled as styled87 } from "styled-components";
|
|
16570
|
+
var RadioCardChildrenContainer = styled87.div`
|
|
16492
16571
|
flex: 1 1 auto;
|
|
16493
16572
|
`;
|
|
16494
16573
|
|
|
16495
16574
|
// src/components/RadioCard/RadioCard.tsx
|
|
16496
|
-
import { jsx as
|
|
16575
|
+
import { jsx as jsx304 } from "react/jsx-runtime";
|
|
16497
16576
|
var RadioCard = forwardRef29(
|
|
16498
16577
|
({ icon, label, description, showIndicator, children, ...rootProps }, ref) => {
|
|
16499
|
-
return /* @__PURE__ */
|
|
16578
|
+
return /* @__PURE__ */ jsx304(
|
|
16500
16579
|
RadioCardRoot,
|
|
16501
16580
|
{
|
|
16502
16581
|
ref,
|
|
16503
16582
|
padding: children != null ? "space-00" : "space-04",
|
|
16504
16583
|
...rootProps,
|
|
16505
|
-
children: children != null ? /* @__PURE__ */
|
|
16584
|
+
children: children != null ? /* @__PURE__ */ jsx304(RadioCardChildrenContainer, { "data-wui-radio-card-image": "cover", children }) : /* @__PURE__ */ jsx304(
|
|
16506
16585
|
RadioCardDefaultLayout,
|
|
16507
16586
|
{
|
|
16508
16587
|
description,
|
|
@@ -16519,17 +16598,17 @@ RadioCard.displayName = "RadioCard_UI";
|
|
|
16519
16598
|
|
|
16520
16599
|
// src/components/RadioCard/RadioCardImage.tsx
|
|
16521
16600
|
import { forwardRef as forwardRef30 } from "react";
|
|
16522
|
-
import { jsx as
|
|
16601
|
+
import { jsx as jsx305 } from "react/jsx-runtime";
|
|
16523
16602
|
var RadioCardImage = forwardRef30(
|
|
16524
16603
|
({ label, imageSrc, aspectRatio, padding = "space-04", ...rootProps }, ref) => {
|
|
16525
|
-
return /* @__PURE__ */
|
|
16604
|
+
return /* @__PURE__ */ jsx305(
|
|
16526
16605
|
RadioCardRoot,
|
|
16527
16606
|
{
|
|
16528
16607
|
ref,
|
|
16529
16608
|
...rootProps,
|
|
16530
16609
|
aspectRatio,
|
|
16531
16610
|
padding,
|
|
16532
|
-
children: /* @__PURE__ */
|
|
16611
|
+
children: /* @__PURE__ */ jsx305(
|
|
16533
16612
|
Image,
|
|
16534
16613
|
{
|
|
16535
16614
|
alt: label,
|
|
@@ -16547,49 +16626,49 @@ RadioCardImage.displayName = "RadioCardImage_UI";
|
|
|
16547
16626
|
|
|
16548
16627
|
// src/components/ScrollArea/ScrollArea.tsx
|
|
16549
16628
|
import { forwardRef as forwardRef31, useCallback as useCallback18, useEffect as useEffect20, useMemo as useMemo15, useRef as useRef21, useState as useState23 } from "react";
|
|
16550
|
-
import { styled as
|
|
16629
|
+
import { styled as styled88 } from "styled-components";
|
|
16551
16630
|
import { throttle } from "throttle-debounce";
|
|
16552
|
-
import { jsx as
|
|
16631
|
+
import { jsx as jsx306, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
16553
16632
|
var SHADOW_SIZE_PX = 8;
|
|
16554
|
-
var Container10 =
|
|
16633
|
+
var Container10 = styled88.div`
|
|
16555
16634
|
overflow: hidden;
|
|
16556
16635
|
position: relative;
|
|
16557
16636
|
flex: 1 1 auto;
|
|
16558
16637
|
`;
|
|
16559
|
-
var ScrollContainer =
|
|
16638
|
+
var ScrollContainer = styled88.div`
|
|
16560
16639
|
overflow: ${({ $locked }) => $locked ? "hidden" : "auto"};
|
|
16561
16640
|
height: 100%;
|
|
16562
16641
|
width: 100%;
|
|
16563
16642
|
`;
|
|
16564
|
-
var Shadow =
|
|
16643
|
+
var Shadow = styled88.div`
|
|
16565
16644
|
pointer-events: none;
|
|
16566
16645
|
position: absolute;
|
|
16567
16646
|
transition: box-shadow var(--wui-motion-duration-04) var(--wui-motion-ease);
|
|
16568
16647
|
box-shadow: ${({ $isVisible }) => $isVisible ? `0 0 ${SHADOW_SIZE_PX}px ${SHADOW_SIZE_PX}px var(--wui-color-drop-shadow)` : "none"};
|
|
16569
16648
|
z-index: 1;
|
|
16570
16649
|
`;
|
|
16571
|
-
var ShadowAtTop =
|
|
16650
|
+
var ShadowAtTop = styled88(Shadow)`
|
|
16572
16651
|
transform: translateY(-${SHADOW_SIZE_PX}px);
|
|
16573
16652
|
height: 0;
|
|
16574
16653
|
left: 0;
|
|
16575
16654
|
right: 0;
|
|
16576
16655
|
top: 0;
|
|
16577
16656
|
`;
|
|
16578
|
-
var ShadowAtBottom =
|
|
16657
|
+
var ShadowAtBottom = styled88(Shadow)`
|
|
16579
16658
|
transform: translateY(${SHADOW_SIZE_PX}px);
|
|
16580
16659
|
bottom: 0;
|
|
16581
16660
|
height: 0;
|
|
16582
16661
|
left: 0;
|
|
16583
16662
|
right: 0;
|
|
16584
16663
|
`;
|
|
16585
|
-
var ShadowAtLeft =
|
|
16664
|
+
var ShadowAtLeft = styled88(Shadow)`
|
|
16586
16665
|
transform: translateX(-${SHADOW_SIZE_PX}px);
|
|
16587
16666
|
bottom: 0;
|
|
16588
16667
|
left: 0;
|
|
16589
16668
|
top: 0;
|
|
16590
16669
|
width: 0;
|
|
16591
16670
|
`;
|
|
16592
|
-
var ShadowAtRight =
|
|
16671
|
+
var ShadowAtRight = styled88(Shadow)`
|
|
16593
16672
|
transform: translateX(${SHADOW_SIZE_PX}px);
|
|
16594
16673
|
bottom: 0;
|
|
16595
16674
|
right: 0;
|
|
@@ -16630,11 +16709,11 @@ var ScrollArea = forwardRef31(
|
|
|
16630
16709
|
updateShadows();
|
|
16631
16710
|
}, [updateShadows]);
|
|
16632
16711
|
return /* @__PURE__ */ jsxs58(Container10, { style, children: [
|
|
16633
|
-
/* @__PURE__ */
|
|
16634
|
-
/* @__PURE__ */
|
|
16635
|
-
/* @__PURE__ */
|
|
16636
|
-
/* @__PURE__ */
|
|
16637
|
-
/* @__PURE__ */
|
|
16712
|
+
/* @__PURE__ */ jsx306(ShadowAtTop, { $isVisible: shadowState.canScrollUp }),
|
|
16713
|
+
/* @__PURE__ */ jsx306(ShadowAtBottom, { $isVisible: shadowState.canScrollDown }),
|
|
16714
|
+
/* @__PURE__ */ jsx306(ShadowAtLeft, { $isVisible: shadowState.canScrollLeft }),
|
|
16715
|
+
/* @__PURE__ */ jsx306(ShadowAtRight, { $isVisible: shadowState.canScrollRight }),
|
|
16716
|
+
/* @__PURE__ */ jsx306(
|
|
16638
16717
|
ScrollContainer,
|
|
16639
16718
|
{
|
|
16640
16719
|
ref: scrollContainerRef,
|
|
@@ -16651,13 +16730,13 @@ ScrollArea.displayName = "ScrollArea_UI";
|
|
|
16651
16730
|
|
|
16652
16731
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
16653
16732
|
import { forwardRef as forwardRef32 } from "react";
|
|
16654
|
-
import { styled as
|
|
16733
|
+
import { styled as styled90, css as css44 } from "styled-components";
|
|
16655
16734
|
import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
|
|
16656
16735
|
import { isNil as isNil18 } from "@wistia/type-guards";
|
|
16657
16736
|
|
|
16658
16737
|
// src/components/SegmentedControl/useSelectedItemStyle.tsx
|
|
16659
16738
|
import { createContext as createContext9, useContext as useContext15, useMemo as useMemo16, useState as useState24 } from "react";
|
|
16660
|
-
import { jsx as
|
|
16739
|
+
import { jsx as jsx307 } from "react/jsx-runtime";
|
|
16661
16740
|
var SelectedItemStyleContext = createContext9(null);
|
|
16662
16741
|
var SelectedItemStyleProvider = ({
|
|
16663
16742
|
children
|
|
@@ -16678,7 +16757,7 @@ var SelectedItemStyleProvider = ({
|
|
|
16678
16757
|
}),
|
|
16679
16758
|
[selectedItemIndicatorStyle]
|
|
16680
16759
|
);
|
|
16681
|
-
return /* @__PURE__ */
|
|
16760
|
+
return /* @__PURE__ */ jsx307(SelectedItemStyleContext.Provider, { value: contextValue, children });
|
|
16682
16761
|
};
|
|
16683
16762
|
var useSelectedItemStyle = () => {
|
|
16684
16763
|
const context = useContext15(SelectedItemStyleContext);
|
|
@@ -16689,7 +16768,7 @@ var useSelectedItemStyle = () => {
|
|
|
16689
16768
|
};
|
|
16690
16769
|
|
|
16691
16770
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
16692
|
-
import { styled as
|
|
16771
|
+
import { styled as styled89, css as css43 } from "styled-components";
|
|
16693
16772
|
import { isUndefined as isUndefined5 } from "@wistia/type-guards";
|
|
16694
16773
|
|
|
16695
16774
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
@@ -16705,13 +16784,13 @@ var useSegmentedControlValue = () => {
|
|
|
16705
16784
|
};
|
|
16706
16785
|
|
|
16707
16786
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
16708
|
-
import { jsx as
|
|
16787
|
+
import { jsx as jsx308 } from "react/jsx-runtime";
|
|
16709
16788
|
var selectedItemIndicatorStyles = css43`
|
|
16710
16789
|
background-color: var(--wui-color-bg-fill-white);
|
|
16711
16790
|
border-radius: var(--wui-border-radius-rounded);
|
|
16712
16791
|
box-shadow: var(--wui-elevation-01);
|
|
16713
16792
|
`;
|
|
16714
|
-
var SelectedItemIndicatorDiv =
|
|
16793
|
+
var SelectedItemIndicatorDiv = styled89.div`
|
|
16715
16794
|
${selectedItemIndicatorStyles}
|
|
16716
16795
|
left: 0;
|
|
16717
16796
|
position: absolute;
|
|
@@ -16727,7 +16806,7 @@ var SelectedItemIndicator = () => {
|
|
|
16727
16806
|
if (!selectedValue || isUndefined5(selectedItemIndicatorStyle)) {
|
|
16728
16807
|
return null;
|
|
16729
16808
|
}
|
|
16730
|
-
return /* @__PURE__ */
|
|
16809
|
+
return /* @__PURE__ */ jsx308(
|
|
16731
16810
|
SelectedItemIndicatorDiv,
|
|
16732
16811
|
{
|
|
16733
16812
|
"data-wui-selected-item-indicator": true,
|
|
@@ -16737,7 +16816,7 @@ var SelectedItemIndicator = () => {
|
|
|
16737
16816
|
};
|
|
16738
16817
|
|
|
16739
16818
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
16740
|
-
import { jsx as
|
|
16819
|
+
import { jsx as jsx309, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
16741
16820
|
var segmentedControlStyles = css44`
|
|
16742
16821
|
display: inline-flex;
|
|
16743
16822
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -16749,7 +16828,7 @@ var segmentedControlStyles = css44`
|
|
|
16749
16828
|
position: relative;
|
|
16750
16829
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
16751
16830
|
`;
|
|
16752
|
-
var StyledSegmentedControl =
|
|
16831
|
+
var StyledSegmentedControl = styled90(ToggleGroupRoot2)`
|
|
16753
16832
|
${segmentedControlStyles}
|
|
16754
16833
|
`;
|
|
16755
16834
|
var SegmentedControl = forwardRef32(
|
|
@@ -16764,7 +16843,7 @@ var SegmentedControl = forwardRef32(
|
|
|
16764
16843
|
if (isNil18(children)) {
|
|
16765
16844
|
return null;
|
|
16766
16845
|
}
|
|
16767
|
-
return /* @__PURE__ */
|
|
16846
|
+
return /* @__PURE__ */ jsx309(
|
|
16768
16847
|
StyledSegmentedControl,
|
|
16769
16848
|
{
|
|
16770
16849
|
ref,
|
|
@@ -16776,9 +16855,9 @@ var SegmentedControl = forwardRef32(
|
|
|
16776
16855
|
type: "single",
|
|
16777
16856
|
value: selectedValue,
|
|
16778
16857
|
...props,
|
|
16779
|
-
children: /* @__PURE__ */
|
|
16858
|
+
children: /* @__PURE__ */ jsx309(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs59(SelectedItemStyleProvider, { children: [
|
|
16780
16859
|
children,
|
|
16781
|
-
/* @__PURE__ */
|
|
16860
|
+
/* @__PURE__ */ jsx309(SelectedItemIndicator, {})
|
|
16782
16861
|
] }) })
|
|
16783
16862
|
}
|
|
16784
16863
|
);
|
|
@@ -16788,7 +16867,7 @@ SegmentedControl.displayName = "SegmentedControl_UI";
|
|
|
16788
16867
|
|
|
16789
16868
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
16790
16869
|
import { forwardRef as forwardRef33, useEffect as useEffect21, useRef as useRef22 } from "react";
|
|
16791
|
-
import { styled as
|
|
16870
|
+
import { styled as styled91, css as css45 } from "styled-components";
|
|
16792
16871
|
import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
|
|
16793
16872
|
import { isNotNil as isNotNil36 } from "@wistia/type-guards";
|
|
16794
16873
|
import { jsxs as jsxs60 } from "react/jsx-runtime";
|
|
@@ -16860,7 +16939,7 @@ var segmentedControlItemStyles = css45`
|
|
|
16860
16939
|
}
|
|
16861
16940
|
}
|
|
16862
16941
|
`;
|
|
16863
|
-
var StyledSegmentedControlItem =
|
|
16942
|
+
var StyledSegmentedControlItem = styled91(ToggleGroupItem2)`
|
|
16864
16943
|
${segmentedControlItemStyles}
|
|
16865
16944
|
`;
|
|
16866
16945
|
var SegmentedControlItem = forwardRef33(
|
|
@@ -16933,9 +17012,9 @@ import {
|
|
|
16933
17012
|
ScrollDownButton
|
|
16934
17013
|
} from "@radix-ui/react-select";
|
|
16935
17014
|
import { forwardRef as forwardRef34 } from "react";
|
|
16936
|
-
import { styled as
|
|
16937
|
-
import { jsx as
|
|
16938
|
-
var StyledTrigger2 =
|
|
17015
|
+
import { styled as styled92, css as css46 } from "styled-components";
|
|
17016
|
+
import { jsx as jsx310, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
17017
|
+
var StyledTrigger2 = styled92(Trigger3)`
|
|
16939
17018
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
16940
17019
|
${inputCss};
|
|
16941
17020
|
padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
|
|
@@ -16981,7 +17060,7 @@ var StyledTrigger2 = styled91(Trigger3)`
|
|
|
16981
17060
|
color: var(--wui-input-placeholder);
|
|
16982
17061
|
}
|
|
16983
17062
|
`;
|
|
16984
|
-
var StyledContent3 =
|
|
17063
|
+
var StyledContent3 = styled92(Content3)`
|
|
16985
17064
|
--wui-select-content-border: var(--wui-color-border);
|
|
16986
17065
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
16987
17066
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -17009,10 +17088,10 @@ var scrollButtonStyles = css46`
|
|
|
17009
17088
|
display: flex;
|
|
17010
17089
|
justify-content: center;
|
|
17011
17090
|
`;
|
|
17012
|
-
var StyledScrollDownButton =
|
|
17091
|
+
var StyledScrollDownButton = styled92(ScrollDownButton)`
|
|
17013
17092
|
${scrollButtonStyles}
|
|
17014
17093
|
`;
|
|
17015
|
-
var StyledScrollUpButton =
|
|
17094
|
+
var StyledScrollUpButton = styled92(ScrollUpButton)`
|
|
17016
17095
|
${scrollButtonStyles}
|
|
17017
17096
|
`;
|
|
17018
17097
|
var Select = forwardRef34(
|
|
@@ -17044,8 +17123,8 @@ var Select = forwardRef34(
|
|
|
17044
17123
|
$fullWidth: responsiveFullWidth,
|
|
17045
17124
|
...props,
|
|
17046
17125
|
children: [
|
|
17047
|
-
/* @__PURE__ */
|
|
17048
|
-
/* @__PURE__ */
|
|
17126
|
+
/* @__PURE__ */ jsx310(Value, { placeholder }),
|
|
17127
|
+
/* @__PURE__ */ jsx310(
|
|
17049
17128
|
Icon,
|
|
17050
17129
|
{
|
|
17051
17130
|
size: "md",
|
|
@@ -17055,16 +17134,16 @@ var Select = forwardRef34(
|
|
|
17055
17134
|
]
|
|
17056
17135
|
}
|
|
17057
17136
|
),
|
|
17058
|
-
/* @__PURE__ */
|
|
17059
|
-
/* @__PURE__ */
|
|
17137
|
+
/* @__PURE__ */ jsx310(Portal2, { children: /* @__PURE__ */ jsxs61(StyledContent3, { position: "popper", children: [
|
|
17138
|
+
/* @__PURE__ */ jsx310(StyledScrollUpButton, { children: /* @__PURE__ */ jsx310(
|
|
17060
17139
|
Icon,
|
|
17061
17140
|
{
|
|
17062
17141
|
size: "sm",
|
|
17063
17142
|
type: "caret-up"
|
|
17064
17143
|
}
|
|
17065
17144
|
) }),
|
|
17066
|
-
/* @__PURE__ */
|
|
17067
|
-
/* @__PURE__ */
|
|
17145
|
+
/* @__PURE__ */ jsx310(Viewport, { children }),
|
|
17146
|
+
/* @__PURE__ */ jsx310(StyledScrollDownButton, { children: /* @__PURE__ */ jsx310(
|
|
17068
17147
|
Icon,
|
|
17069
17148
|
{
|
|
17070
17149
|
size: "sm",
|
|
@@ -17080,10 +17159,10 @@ Select.displayName = "Select_UI";
|
|
|
17080
17159
|
// src/components/Select/SelectOption.tsx
|
|
17081
17160
|
import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
17082
17161
|
import { forwardRef as forwardRef35 } from "react";
|
|
17083
|
-
import { styled as
|
|
17162
|
+
import { styled as styled93 } from "styled-components";
|
|
17084
17163
|
import { isNotNil as isNotNil37 } from "@wistia/type-guards";
|
|
17085
|
-
import { jsx as
|
|
17086
|
-
var StyledItem =
|
|
17164
|
+
import { jsx as jsx311, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
17165
|
+
var StyledItem = styled93(Item)`
|
|
17087
17166
|
${getTypographicStyles("label3")}
|
|
17088
17167
|
align-items: ${({ $checkmarkVerticalAlign }) => $checkmarkVerticalAlign === "center" ? "center" : "flex-start"};
|
|
17089
17168
|
background-color: transparent;
|
|
@@ -17120,9 +17199,9 @@ var SelectOption = forwardRef35(
|
|
|
17120
17199
|
children: [
|
|
17121
17200
|
isNotNil37(selectedDisplayValue) ? /* @__PURE__ */ jsxs62("div", { children: [
|
|
17122
17201
|
children,
|
|
17123
|
-
/* @__PURE__ */
|
|
17124
|
-
] }) : /* @__PURE__ */
|
|
17125
|
-
/* @__PURE__ */
|
|
17202
|
+
/* @__PURE__ */ jsx311("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx311(ItemText, { children: selectedDisplayValue }) })
|
|
17203
|
+
] }) : /* @__PURE__ */ jsx311(ItemText, { children }),
|
|
17204
|
+
/* @__PURE__ */ jsx311(ItemIndicator, { children: /* @__PURE__ */ jsx311(
|
|
17126
17205
|
Icon,
|
|
17127
17206
|
{
|
|
17128
17207
|
size: "md",
|
|
@@ -17138,14 +17217,14 @@ SelectOption.displayName = "SelectOption_UI";
|
|
|
17138
17217
|
|
|
17139
17218
|
// src/components/Select/SelectOptionGroup.tsx
|
|
17140
17219
|
import { Group, Label as Label3 } from "@radix-ui/react-select";
|
|
17141
|
-
import { styled as
|
|
17142
|
-
import { jsx as
|
|
17143
|
-
var StyledLabel4 =
|
|
17220
|
+
import { styled as styled94 } from "styled-components";
|
|
17221
|
+
import { jsx as jsx312, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
17222
|
+
var StyledLabel4 = styled94(Label3)`
|
|
17144
17223
|
padding: var(--wui-select-option-padding);
|
|
17145
17224
|
`;
|
|
17146
17225
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
17147
17226
|
return /* @__PURE__ */ jsxs63(Group, { ...props, children: [
|
|
17148
|
-
/* @__PURE__ */
|
|
17227
|
+
/* @__PURE__ */ jsx312(StyledLabel4, { children: /* @__PURE__ */ jsx312(
|
|
17149
17228
|
Heading,
|
|
17150
17229
|
{
|
|
17151
17230
|
renderAs: "span",
|
|
@@ -17164,10 +17243,10 @@ import {
|
|
|
17164
17243
|
Range as RadixSliderRange,
|
|
17165
17244
|
Thumb as RadixSliderThumb
|
|
17166
17245
|
} from "@radix-ui/react-slider";
|
|
17167
|
-
import { styled as
|
|
17246
|
+
import { styled as styled95 } from "styled-components";
|
|
17168
17247
|
import { isNonEmptyString as isNonEmptyString9 } from "@wistia/type-guards";
|
|
17169
|
-
import { jsx as
|
|
17170
|
-
var SliderContainer =
|
|
17248
|
+
import { jsx as jsx313, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
17249
|
+
var SliderContainer = styled95.div`
|
|
17171
17250
|
--wui-slider-track-color: var(--wui-gray-6);
|
|
17172
17251
|
--wui-slider-track-border-radius: var(--wui-border-radius-rounded);
|
|
17173
17252
|
--wui-slider-range-color: var(--wui-color-bg-fill);
|
|
@@ -17183,7 +17262,7 @@ var SliderContainer = styled94.div`
|
|
|
17183
17262
|
pointer-events: none;
|
|
17184
17263
|
}
|
|
17185
17264
|
`;
|
|
17186
|
-
var StyledSliderRoot =
|
|
17265
|
+
var StyledSliderRoot = styled95(RadixSliderRoot)`
|
|
17187
17266
|
position: relative;
|
|
17188
17267
|
display: flex;
|
|
17189
17268
|
align-items: center;
|
|
@@ -17191,20 +17270,20 @@ var StyledSliderRoot = styled94(RadixSliderRoot)`
|
|
|
17191
17270
|
touch-action: none;
|
|
17192
17271
|
width: 100%;
|
|
17193
17272
|
`;
|
|
17194
|
-
var StyledSliderTrack =
|
|
17273
|
+
var StyledSliderTrack = styled95(RadixSliderTrack)`
|
|
17195
17274
|
background-color: var(--wui-slider-track-color);
|
|
17196
17275
|
border-radius: var(--wui-slider-track-border-radius);
|
|
17197
17276
|
flex-grow: 1;
|
|
17198
17277
|
height: 6px;
|
|
17199
17278
|
position: relative;
|
|
17200
17279
|
`;
|
|
17201
|
-
var StyledSliderRange =
|
|
17280
|
+
var StyledSliderRange = styled95(RadixSliderRange)`
|
|
17202
17281
|
background-color: var(--wui-slider-range-color);
|
|
17203
17282
|
border-radius: var(--wui-slider-track-border-radius);
|
|
17204
17283
|
height: 100%;
|
|
17205
17284
|
position: absolute;
|
|
17206
17285
|
`;
|
|
17207
|
-
var StyledSliderThumb =
|
|
17286
|
+
var StyledSliderThumb = styled95(RadixSliderThumb)`
|
|
17208
17287
|
background-color: var(--wui-slider-thumb-color);
|
|
17209
17288
|
border-radius: var(--wui-border-radius-rounded);
|
|
17210
17289
|
cursor: grab;
|
|
@@ -17255,7 +17334,7 @@ var Slider = ({
|
|
|
17255
17334
|
onChange(newValue);
|
|
17256
17335
|
}
|
|
17257
17336
|
};
|
|
17258
|
-
return /* @__PURE__ */
|
|
17337
|
+
return /* @__PURE__ */ jsx313(
|
|
17259
17338
|
SliderContainer,
|
|
17260
17339
|
{
|
|
17261
17340
|
...otherProps,
|
|
@@ -17273,8 +17352,8 @@ var Slider = ({
|
|
|
17273
17352
|
step,
|
|
17274
17353
|
...value ? { value } : {},
|
|
17275
17354
|
children: [
|
|
17276
|
-
/* @__PURE__ */
|
|
17277
|
-
values.map((_, index) => /* @__PURE__ */
|
|
17355
|
+
/* @__PURE__ */ jsx313(StyledSliderTrack, { "data-testid": `${dataTestId}-track`, children: /* @__PURE__ */ jsx313(StyledSliderRange, { "data-testid": `${dataTestId}-range` }) }),
|
|
17356
|
+
values.map((_, index) => /* @__PURE__ */ jsx313(
|
|
17278
17357
|
StyledSliderThumb,
|
|
17279
17358
|
{
|
|
17280
17359
|
"data-testid": `${dataTestId}-thumb-${index}`
|
|
@@ -17290,9 +17369,9 @@ var Slider = ({
|
|
|
17290
17369
|
Slider.displayName = "Slider_UI";
|
|
17291
17370
|
|
|
17292
17371
|
// src/components/Table/Table.tsx
|
|
17293
|
-
import { styled as
|
|
17294
|
-
import { jsx as
|
|
17295
|
-
var StyledTable =
|
|
17372
|
+
import { styled as styled96, css as css47 } from "styled-components";
|
|
17373
|
+
import { jsx as jsx314 } from "react/jsx-runtime";
|
|
17374
|
+
var StyledTable = styled96.table`
|
|
17296
17375
|
width: 100%;
|
|
17297
17376
|
border-collapse: collapse;
|
|
17298
17377
|
|
|
@@ -17321,7 +17400,7 @@ var Table = ({
|
|
|
17321
17400
|
visuallyHiddenHeader = false,
|
|
17322
17401
|
...props
|
|
17323
17402
|
}) => {
|
|
17324
|
-
return /* @__PURE__ */
|
|
17403
|
+
return /* @__PURE__ */ jsx314(
|
|
17325
17404
|
StyledTable,
|
|
17326
17405
|
{
|
|
17327
17406
|
$divided: divided,
|
|
@@ -17335,35 +17414,35 @@ var Table = ({
|
|
|
17335
17414
|
|
|
17336
17415
|
// src/components/Table/TableBody.tsx
|
|
17337
17416
|
import "react";
|
|
17338
|
-
import { styled as
|
|
17417
|
+
import { styled as styled97 } from "styled-components";
|
|
17339
17418
|
|
|
17340
17419
|
// src/components/Table/TableSectionContext.ts
|
|
17341
17420
|
import { createContext as createContext11 } from "react";
|
|
17342
17421
|
var TableSectionContext = createContext11(null);
|
|
17343
17422
|
|
|
17344
17423
|
// src/components/Table/TableBody.tsx
|
|
17345
|
-
import { jsx as
|
|
17346
|
-
var StyledTableBody =
|
|
17424
|
+
import { jsx as jsx315 } from "react/jsx-runtime";
|
|
17425
|
+
var StyledTableBody = styled97.tbody``;
|
|
17347
17426
|
var TableBody = ({ children, ...props }) => {
|
|
17348
|
-
return /* @__PURE__ */
|
|
17427
|
+
return /* @__PURE__ */ jsx315(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx315(StyledTableBody, { ...props, children }) });
|
|
17349
17428
|
};
|
|
17350
17429
|
|
|
17351
17430
|
// src/components/Table/TableCell.tsx
|
|
17352
17431
|
import { useContext as useContext17 } from "react";
|
|
17353
|
-
import { styled as
|
|
17354
|
-
import { jsx as
|
|
17432
|
+
import { styled as styled98, css as css48 } from "styled-components";
|
|
17433
|
+
import { jsx as jsx316 } from "react/jsx-runtime";
|
|
17355
17434
|
var sharedStyles = css48`
|
|
17356
17435
|
color: var(--wui-color-text);
|
|
17357
17436
|
padding: var(--wui-space-02);
|
|
17358
17437
|
text-align: left;
|
|
17359
17438
|
`;
|
|
17360
|
-
var StyledTh =
|
|
17439
|
+
var StyledTh = styled98.th`
|
|
17361
17440
|
${sharedStyles}
|
|
17362
17441
|
font-size: var(--wui-typography-body-4-size);
|
|
17363
17442
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
17364
17443
|
line-height: var(--wui-typography-body-4-line-height);
|
|
17365
17444
|
`;
|
|
17366
|
-
var StyledTd =
|
|
17445
|
+
var StyledTd = styled98.td`
|
|
17367
17446
|
${sharedStyles}
|
|
17368
17447
|
font-size: var(--wui-typography-body-2-size);
|
|
17369
17448
|
font-weight: var(--wui-typography-body-2-weight);
|
|
@@ -17372,35 +17451,35 @@ var StyledTd = styled97.td`
|
|
|
17372
17451
|
var TableCell = ({ children, ...props }) => {
|
|
17373
17452
|
const section = useContext17(TableSectionContext);
|
|
17374
17453
|
if (section === "head") {
|
|
17375
|
-
return /* @__PURE__ */
|
|
17454
|
+
return /* @__PURE__ */ jsx316(StyledTh, { ...props, children });
|
|
17376
17455
|
}
|
|
17377
|
-
return /* @__PURE__ */
|
|
17456
|
+
return /* @__PURE__ */ jsx316(StyledTd, { ...props, children });
|
|
17378
17457
|
};
|
|
17379
17458
|
|
|
17380
17459
|
// src/components/Table/TableFoot.tsx
|
|
17381
17460
|
import "react";
|
|
17382
|
-
import { styled as
|
|
17383
|
-
import { jsx as
|
|
17384
|
-
var StyledTableFoot =
|
|
17461
|
+
import { styled as styled99 } from "styled-components";
|
|
17462
|
+
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
17463
|
+
var StyledTableFoot = styled99.tfoot``;
|
|
17385
17464
|
var TableFoot = ({ children, ...props }) => {
|
|
17386
|
-
return /* @__PURE__ */
|
|
17465
|
+
return /* @__PURE__ */ jsx317(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx317(StyledTableFoot, { ...props, children }) });
|
|
17387
17466
|
};
|
|
17388
17467
|
|
|
17389
17468
|
// src/components/Table/TableHead.tsx
|
|
17390
17469
|
import "react";
|
|
17391
|
-
import { styled as
|
|
17392
|
-
import { jsx as
|
|
17393
|
-
var StyledThead =
|
|
17470
|
+
import { styled as styled100 } from "styled-components";
|
|
17471
|
+
import { jsx as jsx318 } from "react/jsx-runtime";
|
|
17472
|
+
var StyledThead = styled100.thead``;
|
|
17394
17473
|
var TableHead = ({ children, ...props }) => {
|
|
17395
|
-
return /* @__PURE__ */
|
|
17474
|
+
return /* @__PURE__ */ jsx318(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx318(StyledThead, { ...props, children }) });
|
|
17396
17475
|
};
|
|
17397
17476
|
|
|
17398
17477
|
// src/components/Table/TableRow.tsx
|
|
17399
|
-
import { styled as
|
|
17400
|
-
import { jsx as
|
|
17401
|
-
var StyledTableRow =
|
|
17478
|
+
import { styled as styled101 } from "styled-components";
|
|
17479
|
+
import { jsx as jsx319 } from "react/jsx-runtime";
|
|
17480
|
+
var StyledTableRow = styled101.tr``;
|
|
17402
17481
|
var TableRow = ({ children, ...props }) => {
|
|
17403
|
-
return /* @__PURE__ */
|
|
17482
|
+
return /* @__PURE__ */ jsx319(StyledTableRow, { ...props, children });
|
|
17404
17483
|
};
|
|
17405
17484
|
|
|
17406
17485
|
// src/components/Tabs/Tabs.tsx
|
|
@@ -17421,7 +17500,7 @@ var useTabsValue = () => {
|
|
|
17421
17500
|
};
|
|
17422
17501
|
|
|
17423
17502
|
// src/components/Tabs/Tabs.tsx
|
|
17424
|
-
import { jsx as
|
|
17503
|
+
import { jsx as jsx320 } from "react/jsx-runtime";
|
|
17425
17504
|
var Tabs = ({
|
|
17426
17505
|
children,
|
|
17427
17506
|
value: valueProp,
|
|
@@ -17449,42 +17528,42 @@ var Tabs = ({
|
|
|
17449
17528
|
if (isNotNil38(defaultValue)) {
|
|
17450
17529
|
rootProps.defaultValue = defaultValue;
|
|
17451
17530
|
}
|
|
17452
|
-
return /* @__PURE__ */
|
|
17531
|
+
return /* @__PURE__ */ jsx320(RadixTabsRoot, { ...rootProps, children: /* @__PURE__ */ jsx320(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ jsx320(SelectedItemStyleProvider, { children }) }) });
|
|
17453
17532
|
};
|
|
17454
17533
|
Tabs.displayName = "Tabs_UI";
|
|
17455
17534
|
|
|
17456
17535
|
// src/components/Tabs/TabsContent.tsx
|
|
17457
17536
|
import { Content as RadixTabsContent } from "@radix-ui/react-tabs";
|
|
17458
|
-
import { jsx as
|
|
17537
|
+
import { jsx as jsx321 } from "react/jsx-runtime";
|
|
17459
17538
|
var TabsContent = ({ children, value }) => {
|
|
17460
|
-
return /* @__PURE__ */
|
|
17539
|
+
return /* @__PURE__ */ jsx321(RadixTabsContent, { value, children });
|
|
17461
17540
|
};
|
|
17462
17541
|
TabsContent.displayName = "TabsContent_UI";
|
|
17463
17542
|
|
|
17464
17543
|
// src/components/Tabs/TabsList.tsx
|
|
17465
17544
|
import { List as RadixTabList } from "@radix-ui/react-tabs";
|
|
17466
|
-
import { styled as
|
|
17545
|
+
import { styled as styled103 } from "styled-components";
|
|
17467
17546
|
|
|
17468
17547
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
17469
17548
|
import { isUndefined as isUndefined6 } from "@wistia/type-guards";
|
|
17470
17549
|
|
|
17471
17550
|
// src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
|
|
17472
|
-
import { styled as
|
|
17473
|
-
var TabsSelectedItemIndicatorDiv =
|
|
17551
|
+
import { styled as styled102 } from "styled-components";
|
|
17552
|
+
var TabsSelectedItemIndicatorDiv = styled102(SelectedItemIndicatorDiv)`
|
|
17474
17553
|
&:has(~ button[role='tab']:focus-visible) {
|
|
17475
17554
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
17476
17555
|
}
|
|
17477
17556
|
`;
|
|
17478
17557
|
|
|
17479
17558
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
17480
|
-
import { jsx as
|
|
17559
|
+
import { jsx as jsx322 } from "react/jsx-runtime";
|
|
17481
17560
|
var SelectedTabIndicator = () => {
|
|
17482
17561
|
const { selectedItemIndicatorStyle } = useSelectedItemStyle();
|
|
17483
17562
|
const selectedValue = useTabsValue();
|
|
17484
17563
|
if (selectedValue == null || isUndefined6(selectedItemIndicatorStyle)) {
|
|
17485
17564
|
return null;
|
|
17486
17565
|
}
|
|
17487
|
-
return /* @__PURE__ */
|
|
17566
|
+
return /* @__PURE__ */ jsx322(
|
|
17488
17567
|
TabsSelectedItemIndicatorDiv,
|
|
17489
17568
|
{
|
|
17490
17569
|
"data-wui-selected-item-indicator": true,
|
|
@@ -17494,8 +17573,8 @@ var SelectedTabIndicator = () => {
|
|
|
17494
17573
|
};
|
|
17495
17574
|
|
|
17496
17575
|
// src/components/Tabs/TabsList.tsx
|
|
17497
|
-
import { jsx as
|
|
17498
|
-
var StyledRadixTabsList =
|
|
17576
|
+
import { jsx as jsx323, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
17577
|
+
var StyledRadixTabsList = styled103(RadixTabList)`
|
|
17499
17578
|
${segmentedControlStyles}
|
|
17500
17579
|
`;
|
|
17501
17580
|
var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
@@ -17506,7 +17585,7 @@ var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
|
17506
17585
|
"aria-label": props["aria-label"],
|
|
17507
17586
|
children: [
|
|
17508
17587
|
children,
|
|
17509
|
-
/* @__PURE__ */
|
|
17588
|
+
/* @__PURE__ */ jsx323(SelectedTabIndicator, {})
|
|
17510
17589
|
]
|
|
17511
17590
|
}
|
|
17512
17591
|
);
|
|
@@ -17518,9 +17597,9 @@ import { forwardRef as forwardRef36, useEffect as useEffect22, useRef as useRef2
|
|
|
17518
17597
|
import { isNotNil as isNotNil39 } from "@wistia/type-guards";
|
|
17519
17598
|
|
|
17520
17599
|
// src/components/Tabs/StyledRadixTabsTrigger.tsx
|
|
17521
|
-
import { styled as
|
|
17600
|
+
import { styled as styled104 } from "styled-components";
|
|
17522
17601
|
import { Trigger as RadixTabsTrigger } from "@radix-ui/react-tabs";
|
|
17523
|
-
var StyledRadixTabsTrigger =
|
|
17602
|
+
var StyledRadixTabsTrigger = styled104(RadixTabsTrigger)`
|
|
17524
17603
|
${segmentedControlItemStyles}
|
|
17525
17604
|
|
|
17526
17605
|
&:focus-visible {
|
|
@@ -17581,14 +17660,14 @@ var TabsTrigger = forwardRef36(
|
|
|
17581
17660
|
TabsTrigger.displayName = "TabsTrigger_UI";
|
|
17582
17661
|
|
|
17583
17662
|
// src/components/Thumbnail/ThumbnailBadge.tsx
|
|
17584
|
-
import { styled as
|
|
17663
|
+
import { styled as styled105 } from "styled-components";
|
|
17585
17664
|
import { isNotNil as isNotNil40 } from "@wistia/type-guards";
|
|
17586
|
-
import { jsx as
|
|
17587
|
-
var StyledThumbnailBadge =
|
|
17665
|
+
import { jsx as jsx324, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
17666
|
+
var StyledThumbnailBadge = styled105.div`
|
|
17588
17667
|
align-items: center;
|
|
17589
17668
|
background-color: rgb(0 0 0 / 50%);
|
|
17590
17669
|
border-radius: var(--wui-border-radius-01);
|
|
17591
|
-
bottom: var(--wui-
|
|
17670
|
+
bottom: var(--wui-thumbnail-badge-offset);
|
|
17592
17671
|
color: var(--wui-color-text-on-fill);
|
|
17593
17672
|
display: flex;
|
|
17594
17673
|
font-size: var(--wui-typography-body-4-size);
|
|
@@ -17596,7 +17675,7 @@ var StyledThumbnailBadge = styled104.div`
|
|
|
17596
17675
|
gap: var(--wui-space-01);
|
|
17597
17676
|
padding: 0 var(--wui-space-01);
|
|
17598
17677
|
position: absolute;
|
|
17599
|
-
right: var(--wui-
|
|
17678
|
+
right: var(--wui-thumbnail-badge-offset);
|
|
17600
17679
|
z-index: 1;
|
|
17601
17680
|
|
|
17602
17681
|
svg {
|
|
@@ -17612,14 +17691,14 @@ var StyledThumbnailBadge = styled104.div`
|
|
|
17612
17691
|
var ThumbnailBadge = ({ icon, label, ...props }) => {
|
|
17613
17692
|
return /* @__PURE__ */ jsxs67(StyledThumbnailBadge, { ...props, children: [
|
|
17614
17693
|
isNotNil40(icon) && icon,
|
|
17615
|
-
/* @__PURE__ */
|
|
17694
|
+
/* @__PURE__ */ jsx324("span", { children: label })
|
|
17616
17695
|
] });
|
|
17617
17696
|
};
|
|
17618
17697
|
ThumbnailBadge.displayName = "ThumbnailBadge_UI";
|
|
17619
17698
|
|
|
17620
17699
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
17621
17700
|
import { forwardRef as forwardRef37, useState as useState26, useRef as useRef24, useCallback as useCallback20, useMemo as useMemo17 } from "react";
|
|
17622
|
-
import { styled as
|
|
17701
|
+
import { styled as styled107 } from "styled-components";
|
|
17623
17702
|
import { isNil as isNil19, isNotNil as isNotNil43, isUndefined as isUndefined7, isEmptyString as isEmptyString2, isString as isString4 } from "@wistia/type-guards";
|
|
17624
17703
|
|
|
17625
17704
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
@@ -17755,10 +17834,10 @@ var getBackgroundGradient = (gradientName = void 0) => {
|
|
|
17755
17834
|
};
|
|
17756
17835
|
|
|
17757
17836
|
// src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
|
|
17758
|
-
import { styled as
|
|
17837
|
+
import { styled as styled106 } from "styled-components";
|
|
17759
17838
|
import { isNotNil as isNotNil42 } from "@wistia/type-guards";
|
|
17760
|
-
import { jsx as
|
|
17761
|
-
var ScrubLine =
|
|
17839
|
+
import { jsx as jsx325, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
17840
|
+
var ScrubLine = styled106.div`
|
|
17762
17841
|
position: absolute;
|
|
17763
17842
|
top: 0;
|
|
17764
17843
|
height: 100%;
|
|
@@ -17875,8 +17954,8 @@ var ThumbnailStoryboardViewer = ({
|
|
|
17875
17954
|
...props,
|
|
17876
17955
|
style: viewerStyles,
|
|
17877
17956
|
children: [
|
|
17878
|
-
/* @__PURE__ */
|
|
17879
|
-
showScrubLine ? /* @__PURE__ */
|
|
17957
|
+
/* @__PURE__ */ jsx325("div", { style: storyboardStyles }),
|
|
17958
|
+
showScrubLine ? /* @__PURE__ */ jsx325(
|
|
17880
17959
|
ScrubLine,
|
|
17881
17960
|
{
|
|
17882
17961
|
style: {
|
|
@@ -17890,7 +17969,7 @@ var ThumbnailStoryboardViewer = ({
|
|
|
17890
17969
|
};
|
|
17891
17970
|
|
|
17892
17971
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
17893
|
-
import { jsx as
|
|
17972
|
+
import { jsx as jsx326, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
17894
17973
|
var WIDE_ASPECT_RATIO = 16 / 9;
|
|
17895
17974
|
var SQUARE_ASPECT_RATIO = 1;
|
|
17896
17975
|
var getAspectRatioValue = (aspectRatio) => {
|
|
@@ -17899,19 +17978,19 @@ var getAspectRatioValue = (aspectRatio) => {
|
|
|
17899
17978
|
}
|
|
17900
17979
|
return WIDE_ASPECT_RATIO;
|
|
17901
17980
|
};
|
|
17902
|
-
var WideThumbnailImage =
|
|
17981
|
+
var WideThumbnailImage = styled107.img`
|
|
17903
17982
|
height: 100%;
|
|
17904
17983
|
object-fit: cover;
|
|
17905
17984
|
width: 100%;
|
|
17906
17985
|
`;
|
|
17907
|
-
var SquareThumbnailImage =
|
|
17986
|
+
var SquareThumbnailImage = styled107.img`
|
|
17908
17987
|
backdrop-filter: blur(8px);
|
|
17909
17988
|
object-fit: contain;
|
|
17910
17989
|
width: 100%;
|
|
17911
17990
|
`;
|
|
17912
17991
|
var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
17913
17992
|
if (thumbnailImageType === "wide") {
|
|
17914
|
-
return /* @__PURE__ */
|
|
17993
|
+
return /* @__PURE__ */ jsx326(
|
|
17915
17994
|
WideThumbnailImage,
|
|
17916
17995
|
{
|
|
17917
17996
|
alt: "",
|
|
@@ -17920,7 +17999,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
17920
17999
|
}
|
|
17921
18000
|
);
|
|
17922
18001
|
}
|
|
17923
|
-
return /* @__PURE__ */
|
|
18002
|
+
return /* @__PURE__ */ jsx326(
|
|
17924
18003
|
SquareThumbnailImage,
|
|
17925
18004
|
{
|
|
17926
18005
|
alt: "",
|
|
@@ -17929,7 +18008,17 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
17929
18008
|
}
|
|
17930
18009
|
);
|
|
17931
18010
|
};
|
|
17932
|
-
var
|
|
18011
|
+
var StyledThumbnailContainer = styled107.div`
|
|
18012
|
+
container-type: size;
|
|
18013
|
+
aspect-ratio: ${({ $aspectRatio }) => getAspectRatioValue($aspectRatio)};
|
|
18014
|
+
width: ${({ $width }) => $width};
|
|
18015
|
+
display: flex;
|
|
18016
|
+
overflow: hidden;
|
|
18017
|
+
${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
|
|
18018
|
+
`;
|
|
18019
|
+
var StyledThumbnail = styled107.div`
|
|
18020
|
+
--wui-thumbnail-badge-offset: var(--wui-space-01);
|
|
18021
|
+
|
|
17933
18022
|
background-image: ${({ $backgroundUrl }) => isNotNil43($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
17934
18023
|
${({ $backgroundUrl, $gradientBackground }) => (
|
|
17935
18024
|
// if we don't have $backgroundUrl show a gradient
|
|
@@ -17937,21 +18026,14 @@ var StyledThumbnail = styled106.div`
|
|
|
17937
18026
|
)};
|
|
17938
18027
|
background-position: center center;
|
|
17939
18028
|
background-size: cover;
|
|
17940
|
-
aspect-ratio: ${({ $aspectRatio }) => getAspectRatioValue($aspectRatio)};
|
|
17941
18029
|
display: flex;
|
|
18030
|
+
width: 100%;
|
|
17942
18031
|
overflow: hidden;
|
|
17943
18032
|
position: relative;
|
|
17944
|
-
|
|
17945
|
-
${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
|
|
18033
|
+
border-radius: clamp(var(--wui-border-radius-01), 8cqh, var(--wui-border-radius-05));
|
|
17946
18034
|
|
|
17947
|
-
|
|
17948
|
-
|
|
17949
|
-
border-radius: ${({ $aspectRatio }) => {
|
|
17950
|
-
if ($aspectRatio === "square") {
|
|
17951
|
-
return "8%";
|
|
17952
|
-
}
|
|
17953
|
-
return `calc(8% * (9 / 16)) / 8%`;
|
|
17954
|
-
}};
|
|
18035
|
+
@container (min-width: 200px) {
|
|
18036
|
+
--wui-thumbnail-badge-offset: var(--wui-space-02);
|
|
17955
18037
|
}
|
|
17956
18038
|
`;
|
|
17957
18039
|
var StoryboardRenderer = ({
|
|
@@ -17965,7 +18047,7 @@ var StoryboardRenderer = ({
|
|
|
17965
18047
|
const { url, width: sbWidth, height: sbHeight, frameHeight, frameWidth, frameCount } = storyboard;
|
|
17966
18048
|
const targetWidth = isString4(width) ? parseInt(width, 10) : Number(width);
|
|
17967
18049
|
const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
|
|
17968
|
-
return /* @__PURE__ */
|
|
18050
|
+
return /* @__PURE__ */ jsx326(
|
|
17969
18051
|
ThumbnailStoryboardViewer,
|
|
17970
18052
|
{
|
|
17971
18053
|
cursorPosition: effectiveCursorPosition,
|
|
@@ -18048,7 +18130,7 @@ var Thumbnail = forwardRef37(
|
|
|
18048
18130
|
}, [isScrubbable, isMouseOver, isStoryboardReady, storyboard, height]);
|
|
18049
18131
|
let thumbnailContent = null;
|
|
18050
18132
|
if (storyboard && shouldRenderStoryboard) {
|
|
18051
|
-
thumbnailContent = /* @__PURE__ */
|
|
18133
|
+
thumbnailContent = /* @__PURE__ */ jsx326(
|
|
18052
18134
|
StoryboardRenderer,
|
|
18053
18135
|
{
|
|
18054
18136
|
aspectRatio,
|
|
@@ -18060,7 +18142,7 @@ var Thumbnail = forwardRef37(
|
|
|
18060
18142
|
}
|
|
18061
18143
|
);
|
|
18062
18144
|
} else if (isNotNil43(thumbnailUrl)) {
|
|
18063
|
-
thumbnailContent = /* @__PURE__ */
|
|
18145
|
+
thumbnailContent = /* @__PURE__ */ jsx326(
|
|
18064
18146
|
ThumbnailImage,
|
|
18065
18147
|
{
|
|
18066
18148
|
thumbnailImageType,
|
|
@@ -18070,24 +18152,31 @@ var Thumbnail = forwardRef37(
|
|
|
18070
18152
|
} else {
|
|
18071
18153
|
thumbnailContent = null;
|
|
18072
18154
|
}
|
|
18073
|
-
return /* @__PURE__ */
|
|
18074
|
-
|
|
18155
|
+
return /* @__PURE__ */ jsx326(
|
|
18156
|
+
StyledThumbnailContainer,
|
|
18075
18157
|
{
|
|
18076
18158
|
ref,
|
|
18077
|
-
...props,
|
|
18078
18159
|
$aspectRatio: aspectRatio,
|
|
18079
|
-
$backgroundUrl: backgroundUrl,
|
|
18080
|
-
$gradientBackground: gradientBackground,
|
|
18081
18160
|
$isScrubbable: isScrubbable,
|
|
18082
18161
|
$width: width,
|
|
18162
|
+
"data-wui-thumbnail-container": true,
|
|
18083
18163
|
onBlur: handleMouseOut,
|
|
18084
18164
|
onMouseMove: handleMouseMove,
|
|
18085
18165
|
onMouseOut: handleMouseOut,
|
|
18086
18166
|
role: "presentation",
|
|
18087
|
-
|
|
18088
|
-
|
|
18089
|
-
|
|
18090
|
-
|
|
18167
|
+
...props,
|
|
18168
|
+
children: /* @__PURE__ */ jsxs69(
|
|
18169
|
+
StyledThumbnail,
|
|
18170
|
+
{
|
|
18171
|
+
$backgroundUrl: backgroundUrl,
|
|
18172
|
+
$gradientBackground: gradientBackground,
|
|
18173
|
+
"data-testid": "thumbnail-inner",
|
|
18174
|
+
children: [
|
|
18175
|
+
isNotNil43(children) ? children : null,
|
|
18176
|
+
thumbnailContent
|
|
18177
|
+
]
|
|
18178
|
+
}
|
|
18179
|
+
)
|
|
18091
18180
|
}
|
|
18092
18181
|
);
|
|
18093
18182
|
}
|
|
@@ -18096,75 +18185,57 @@ Thumbnail.displayName = "Thumbnail_UI";
|
|
|
18096
18185
|
|
|
18097
18186
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
18098
18187
|
import React5 from "react";
|
|
18099
|
-
import { styled as
|
|
18188
|
+
import { styled as styled108 } from "styled-components";
|
|
18100
18189
|
import { isNonEmptyArray } from "@wistia/type-guards";
|
|
18101
|
-
import { jsx as
|
|
18102
|
-
var
|
|
18190
|
+
import { jsx as jsx327 } from "react/jsx-runtime";
|
|
18191
|
+
var ThumbnailCollageContainer = styled108.div`
|
|
18192
|
+
container-type: size;
|
|
18193
|
+
width: 100%;
|
|
18194
|
+
aspect-ratio: 16 / 9;
|
|
18195
|
+
display: flex;
|
|
18196
|
+
`;
|
|
18197
|
+
var StyledThumbnailCollage = styled108.div`
|
|
18103
18198
|
display: grid;
|
|
18104
18199
|
gap: var(--wui-space-01);
|
|
18105
18200
|
width: 100%;
|
|
18106
18201
|
grid-template-columns: 3fr 2fr;
|
|
18107
18202
|
grid-template-rows: 1fr 1fr;
|
|
18108
|
-
aspect-ratio: 16 / 9;
|
|
18109
18203
|
|
|
18110
18204
|
&:has(:nth-child(1)) {
|
|
18111
|
-
--wui-collage-thumbnail-first-border-radius: calc(8% * (9 / 16)) / 8%;
|
|
18112
|
-
|
|
18113
18205
|
grid-template-areas:
|
|
18114
18206
|
'a a'
|
|
18115
18207
|
'a a';
|
|
18116
18208
|
}
|
|
18117
18209
|
|
|
18118
18210
|
&:has(:nth-child(2)) {
|
|
18119
|
-
--wui-collage-thumbnail-first-border-radius: 7.5% / 8%;
|
|
18120
|
-
--wui-collage-thumbnail-second-border-radius: 11.5% / 8%;
|
|
18121
|
-
|
|
18122
18211
|
grid-template-areas:
|
|
18123
18212
|
'a b'
|
|
18124
18213
|
'a b';
|
|
18125
18214
|
}
|
|
18126
18215
|
|
|
18127
18216
|
&:has(:nth-child(3)) {
|
|
18128
|
-
--wui-collage-thumbnail-first-border-radius: 7.5% / 8%;
|
|
18129
|
-
--wui-collage-thumbnail-second-border-radius: 11.5% / 16%;
|
|
18130
|
-
--wui-collage-thumbnail-third-border-radius: 11.5% / 16%;
|
|
18131
|
-
|
|
18132
18217
|
grid-template-areas:
|
|
18133
18218
|
'a b'
|
|
18134
18219
|
'a c';
|
|
18135
18220
|
}
|
|
18136
18221
|
|
|
18137
18222
|
> :nth-child(1) {
|
|
18138
|
-
--wui-collage-thumbnail-border-radius: var(--wui-collage-thumbnail-first-border-radius);
|
|
18139
|
-
|
|
18140
18223
|
grid-area: a;
|
|
18141
18224
|
}
|
|
18142
18225
|
|
|
18143
18226
|
> :nth-child(2) {
|
|
18144
|
-
--wui-collage-thumbnail-border-radius: var(--wui-collage-thumbnail-second-border-radius);
|
|
18145
|
-
|
|
18146
18227
|
grid-area: b;
|
|
18147
18228
|
}
|
|
18148
18229
|
|
|
18149
18230
|
> :nth-child(3) {
|
|
18150
|
-
--wui-collage-thumbnail-border-radius: var(--wui-collage-thumbnail-third-border-radius);
|
|
18151
|
-
|
|
18152
18231
|
grid-area: c;
|
|
18153
18232
|
}
|
|
18154
18233
|
|
|
18155
|
-
|
|
18234
|
+
[data-wui-thumbnail-container] {
|
|
18235
|
+
container-type: unset;
|
|
18156
18236
|
aspect-ratio: unset;
|
|
18157
18237
|
height: 100%;
|
|
18158
18238
|
width: 100%;
|
|
18159
|
-
border-radius: var(--wui-collage-thumbnail-border-radius);
|
|
18160
|
-
|
|
18161
|
-
img {
|
|
18162
|
-
border-radius: var(--wui-collage-thumbnail-border-radius);
|
|
18163
|
-
}
|
|
18164
|
-
|
|
18165
|
-
> :not(img) {
|
|
18166
|
-
display: none;
|
|
18167
|
-
}
|
|
18168
18239
|
}
|
|
18169
18240
|
`;
|
|
18170
18241
|
var ThumbnailCollage = ({
|
|
@@ -18181,7 +18252,7 @@ var ThumbnailCollage = ({
|
|
|
18181
18252
|
});
|
|
18182
18253
|
}) : [
|
|
18183
18254
|
// ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
|
|
18184
|
-
/* @__PURE__ */
|
|
18255
|
+
/* @__PURE__ */ jsx327(
|
|
18185
18256
|
Thumbnail,
|
|
18186
18257
|
{
|
|
18187
18258
|
gradientBackground,
|
|
@@ -18190,7 +18261,7 @@ var ThumbnailCollage = ({
|
|
|
18190
18261
|
"fallback"
|
|
18191
18262
|
)
|
|
18192
18263
|
];
|
|
18193
|
-
return /* @__PURE__ */
|
|
18264
|
+
return /* @__PURE__ */ jsx327(ThumbnailCollageContainer, { children: /* @__PURE__ */ jsx327(
|
|
18194
18265
|
StyledThumbnailCollage,
|
|
18195
18266
|
{
|
|
18196
18267
|
$gradientBackground: gradientBackground,
|
|
@@ -18198,30 +18269,30 @@ var ThumbnailCollage = ({
|
|
|
18198
18269
|
...props,
|
|
18199
18270
|
children: thumbnails
|
|
18200
18271
|
}
|
|
18201
|
-
);
|
|
18272
|
+
) });
|
|
18202
18273
|
};
|
|
18203
18274
|
|
|
18204
18275
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
18205
|
-
import { styled as
|
|
18276
|
+
import { styled as styled109, css as css50 } from "styled-components";
|
|
18206
18277
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
18207
|
-
import { jsx as
|
|
18278
|
+
import { jsx as jsx328, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
18208
18279
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
18209
18280
|
if (iconOnly) {
|
|
18210
|
-
return /* @__PURE__ */
|
|
18281
|
+
return /* @__PURE__ */ jsx328(
|
|
18211
18282
|
"g",
|
|
18212
18283
|
{
|
|
18213
18284
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
18214
18285
|
fill: brandmarkColor,
|
|
18215
|
-
children: /* @__PURE__ */
|
|
18286
|
+
children: /* @__PURE__ */ jsx328("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" })
|
|
18216
18287
|
}
|
|
18217
18288
|
);
|
|
18218
18289
|
}
|
|
18219
|
-
return /* @__PURE__ */
|
|
18290
|
+
return /* @__PURE__ */ jsx328(
|
|
18220
18291
|
"g",
|
|
18221
18292
|
{
|
|
18222
18293
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
18223
18294
|
fill: brandmarkColor,
|
|
18224
|
-
children: /* @__PURE__ */
|
|
18295
|
+
children: /* @__PURE__ */ jsx328("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" })
|
|
18225
18296
|
}
|
|
18226
18297
|
);
|
|
18227
18298
|
};
|
|
@@ -18229,12 +18300,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
18229
18300
|
if (iconOnly) {
|
|
18230
18301
|
return null;
|
|
18231
18302
|
}
|
|
18232
|
-
return /* @__PURE__ */
|
|
18303
|
+
return /* @__PURE__ */ jsx328(
|
|
18233
18304
|
"g",
|
|
18234
18305
|
{
|
|
18235
18306
|
"data-testid": "ui-wistia-logo-logotype",
|
|
18236
18307
|
fill: logotypeColor,
|
|
18237
|
-
children: /* @__PURE__ */
|
|
18308
|
+
children: /* @__PURE__ */ jsx328("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" })
|
|
18238
18309
|
}
|
|
18239
18310
|
);
|
|
18240
18311
|
};
|
|
@@ -18244,7 +18315,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
18244
18315
|
}
|
|
18245
18316
|
return "0 0 144 31.47";
|
|
18246
18317
|
};
|
|
18247
|
-
var WistiaLogoComponent =
|
|
18318
|
+
var WistiaLogoComponent = styled109.svg`
|
|
18248
18319
|
height: ${({ height }) => `${height}px`};
|
|
18249
18320
|
|
|
18250
18321
|
/* ensure it will always fit on mobile */
|
|
@@ -18315,23 +18386,23 @@ var WistiaLogo = ({
|
|
|
18315
18386
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18316
18387
|
...props,
|
|
18317
18388
|
children: [
|
|
18318
|
-
/* @__PURE__ */
|
|
18319
|
-
isNotNil44(description) ? /* @__PURE__ */
|
|
18389
|
+
/* @__PURE__ */ jsx328("title", { children: title }),
|
|
18390
|
+
isNotNil44(description) ? /* @__PURE__ */ jsx328("desc", { children: description }) : null,
|
|
18320
18391
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
18321
18392
|
renderLogotype(logotypeColor, iconOnly)
|
|
18322
18393
|
]
|
|
18323
18394
|
}
|
|
18324
18395
|
);
|
|
18325
|
-
return href !== void 0 ? /* @__PURE__ */
|
|
18396
|
+
return href !== void 0 ? /* @__PURE__ */ jsx328("a", { href, children: Logo }) : Logo;
|
|
18326
18397
|
};
|
|
18327
18398
|
WistiaLogo.displayName = "WistiaLogo_UI";
|
|
18328
18399
|
|
|
18329
18400
|
// src/components/SplitButton/SplitButton.tsx
|
|
18330
|
-
import { styled as
|
|
18401
|
+
import { styled as styled110 } from "styled-components";
|
|
18331
18402
|
import { isNotNil as isNotNil45 } from "@wistia/type-guards";
|
|
18332
18403
|
import { cloneElement as cloneElement9 } from "react";
|
|
18333
|
-
import { jsx as
|
|
18334
|
-
var StyledSplitButton =
|
|
18404
|
+
import { jsx as jsx329, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
18405
|
+
var StyledSplitButton = styled110.span`
|
|
18335
18406
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
18336
18407
|
white-space: nowrap;
|
|
18337
18408
|
|
|
@@ -18352,7 +18423,7 @@ var StyledSplitButton = styled109.span`
|
|
|
18352
18423
|
var SplitButton = ({
|
|
18353
18424
|
children,
|
|
18354
18425
|
menuLabel = "Select an option",
|
|
18355
|
-
menuIcon = /* @__PURE__ */
|
|
18426
|
+
menuIcon = /* @__PURE__ */ jsx329(Icon, { type: "caret-down" }),
|
|
18356
18427
|
menuItems,
|
|
18357
18428
|
disabled = false,
|
|
18358
18429
|
colorScheme = "inherit",
|
|
@@ -18364,7 +18435,7 @@ var SplitButton = ({
|
|
|
18364
18435
|
...props
|
|
18365
18436
|
}) => {
|
|
18366
18437
|
return /* @__PURE__ */ jsxs71(StyledSplitButton, { $colorScheme: colorScheme, children: [
|
|
18367
|
-
/* @__PURE__ */
|
|
18438
|
+
/* @__PURE__ */ jsx329(
|
|
18368
18439
|
Button,
|
|
18369
18440
|
{
|
|
18370
18441
|
disabled,
|
|
@@ -18375,12 +18446,12 @@ var SplitButton = ({
|
|
|
18375
18446
|
children
|
|
18376
18447
|
}
|
|
18377
18448
|
),
|
|
18378
|
-
isNotNil45(menuItems) && /* @__PURE__ */
|
|
18449
|
+
isNotNil45(menuItems) && /* @__PURE__ */ jsx329(
|
|
18379
18450
|
Menu,
|
|
18380
18451
|
{
|
|
18381
18452
|
...menuProps,
|
|
18382
18453
|
disabled,
|
|
18383
|
-
trigger: /* @__PURE__ */
|
|
18454
|
+
trigger: /* @__PURE__ */ jsx329(
|
|
18384
18455
|
IconButton,
|
|
18385
18456
|
{
|
|
18386
18457
|
disabled,
|
|
@@ -18403,6 +18474,7 @@ export {
|
|
|
18403
18474
|
Avatar,
|
|
18404
18475
|
Badge,
|
|
18405
18476
|
Banner,
|
|
18477
|
+
BannerImage,
|
|
18406
18478
|
Box,
|
|
18407
18479
|
Breadcrumb,
|
|
18408
18480
|
Breadcrumbs,
|