@wistia/ui 0.18.10-beta.6184f9f6.d0d0aad → 0.18.10-beta.a12abacc.dd82133
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 +90 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.mjs +129 -96
- 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.10-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.10-beta.a12abacc.dd82133
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -14992,11 +14992,23 @@ var FormErrorSummary = ({ description }) => {
|
|
|
14992
14992
|
|
|
14993
14993
|
// src/components/FormField/FormField.tsx
|
|
14994
14994
|
import { Children as Children10, cloneElement as cloneElement8, useContext as useContext13 } from "react";
|
|
14995
|
-
import { styled as styled67 } from "styled-components";
|
|
14995
|
+
import { styled as styled67, css as css36 } from "styled-components";
|
|
14996
14996
|
import { isArray as isArray4, isNotNil as isNotNil28, isNotUndefined as isNotUndefined12, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
14997
|
-
import {
|
|
14997
|
+
import { jsx as jsx288, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
14998
|
+
var inlineErrorStyles = css36`
|
|
14999
|
+
grid-template-rows: 1fr auto;
|
|
15000
|
+
grid-template-areas: 'label-description input' '. error';
|
|
15001
|
+
`;
|
|
15002
|
+
var inlineBaseGridAreaStyles = css36`
|
|
15003
|
+
grid-template-rows: 1fr;
|
|
15004
|
+
grid-template-areas: 'label-description input';
|
|
15005
|
+
`;
|
|
15006
|
+
var blockGridErrorStyles = css36`
|
|
15007
|
+
grid-template-rows: auto 1fr auto;
|
|
15008
|
+
grid-template-areas: 'label-description' 'input' 'error';
|
|
15009
|
+
`;
|
|
14998
15010
|
var StyledFormField = styled67.div`
|
|
14999
|
-
--form-field-spacing: var(--wui-space-
|
|
15011
|
+
--form-field-spacing: var(--wui-space-02);
|
|
15000
15012
|
--form-field-spacing-inline: var(--wui-space-02);
|
|
15001
15013
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
15002
15014
|
|
|
@@ -15010,21 +15022,28 @@ var StyledFormField = styled67.div`
|
|
|
15010
15022
|
&[data-label-position='inline-compact'] {
|
|
15011
15023
|
gap: var(--form-field-spacing-inline);
|
|
15012
15024
|
grid-template-columns: auto 1fr;
|
|
15013
|
-
|
|
15025
|
+
${inlineBaseGridAreaStyles}
|
|
15026
|
+
${({ $hasError }) => $hasError && inlineErrorStyles}
|
|
15014
15027
|
}
|
|
15015
15028
|
|
|
15016
15029
|
&[data-label-position='inline'] {
|
|
15017
15030
|
gap: var(--form-field-spacing-inline);
|
|
15018
15031
|
grid-template-columns: minmax(auto, 1fr) 1fr;
|
|
15019
|
-
|
|
15032
|
+
${inlineBaseGridAreaStyles}
|
|
15033
|
+
${({ $hasError }) => $hasError && inlineErrorStyles}
|
|
15020
15034
|
}
|
|
15021
15035
|
|
|
15022
15036
|
&[data-label-position='block'] {
|
|
15023
15037
|
gap: var(--form-field-spacing);
|
|
15024
15038
|
grid-template-columns: 1fr;
|
|
15025
|
-
grid-template-rows: 1fr;
|
|
15039
|
+
grid-template-rows: auto 1fr;
|
|
15040
|
+
grid-template-areas: 'label-description' 'input';
|
|
15041
|
+
${({ $hasError }) => $hasError && blockGridErrorStyles}
|
|
15026
15042
|
}
|
|
15027
15043
|
`;
|
|
15044
|
+
var ErrorText = styled67(Text)`
|
|
15045
|
+
grid-area: error;
|
|
15046
|
+
`;
|
|
15028
15047
|
var StyledErrorList = styled67.ul`
|
|
15029
15048
|
margin: 0;
|
|
15030
15049
|
padding: 0;
|
|
@@ -15032,17 +15051,19 @@ var StyledErrorList = styled67.ul`
|
|
|
15032
15051
|
display: flex;
|
|
15033
15052
|
flex-direction: column;
|
|
15034
15053
|
gap: var(--wui-space-01);
|
|
15054
|
+
grid-area: error;
|
|
15035
15055
|
`;
|
|
15036
15056
|
var ErrorMessages = ({ errors, id }) => {
|
|
15037
15057
|
const isErrorArray = isArray4(errors);
|
|
15038
15058
|
const isMultipleErrors = isErrorArray && errors.length > 1;
|
|
15039
15059
|
if (!isErrorArray) {
|
|
15040
15060
|
return /* @__PURE__ */ jsx288(
|
|
15041
|
-
|
|
15061
|
+
ErrorText,
|
|
15042
15062
|
{
|
|
15043
15063
|
colorScheme: "error",
|
|
15044
15064
|
id,
|
|
15045
15065
|
prominence: "secondary",
|
|
15066
|
+
style: { gridArea: "error" },
|
|
15046
15067
|
variant: "label4",
|
|
15047
15068
|
children: errors
|
|
15048
15069
|
},
|
|
@@ -15051,11 +15072,12 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
15051
15072
|
}
|
|
15052
15073
|
if (!isMultipleErrors) {
|
|
15053
15074
|
return /* @__PURE__ */ jsx288(
|
|
15054
|
-
|
|
15075
|
+
ErrorText,
|
|
15055
15076
|
{
|
|
15056
15077
|
colorScheme: "error",
|
|
15057
15078
|
id,
|
|
15058
15079
|
prominence: "secondary",
|
|
15080
|
+
style: { gridArea: "error" },
|
|
15059
15081
|
variant: "label4",
|
|
15060
15082
|
children: errors[0]
|
|
15061
15083
|
},
|
|
@@ -15096,12 +15118,16 @@ var FormField = ({
|
|
|
15096
15118
|
const descriptionId = `${computedId}-description`;
|
|
15097
15119
|
const errorId = `${computedId}-error`;
|
|
15098
15120
|
const ariaDescribedby = [descriptionId, errorId].filter(Boolean).join(" ") || void 0;
|
|
15121
|
+
const hasDescription = isNotNil28(description);
|
|
15122
|
+
const hasError = isNotNil28(computedError);
|
|
15123
|
+
const shouldRenderLabelDescriptionWrapper = !isIntegratedLabel || hasDescription;
|
|
15099
15124
|
let childProps = {
|
|
15100
15125
|
name,
|
|
15101
15126
|
id: computedId,
|
|
15102
15127
|
label: isIntegratedLabel ? label : void 0,
|
|
15103
15128
|
"aria-describedby": ariaDescribedby,
|
|
15104
|
-
"aria-invalid":
|
|
15129
|
+
"aria-invalid": hasError,
|
|
15130
|
+
style: { gridArea: "input" },
|
|
15105
15131
|
...props
|
|
15106
15132
|
};
|
|
15107
15133
|
if (isUndefined4(value) && isNotUndefined12(defaultValue)) {
|
|
@@ -15131,28 +15157,38 @@ var FormField = ({
|
|
|
15131
15157
|
StyledFormField,
|
|
15132
15158
|
{
|
|
15133
15159
|
...props,
|
|
15160
|
+
$hasError: hasError,
|
|
15134
15161
|
"data-label-position": labelPosition ?? formState.labelPosition,
|
|
15135
15162
|
children: [
|
|
15136
|
-
|
|
15137
|
-
|
|
15163
|
+
shouldRenderLabelDescriptionWrapper ? /* @__PURE__ */ jsxs49(
|
|
15164
|
+
Stack,
|
|
15138
15165
|
{
|
|
15139
|
-
|
|
15140
|
-
|
|
15141
|
-
|
|
15166
|
+
direction: "vertical",
|
|
15167
|
+
gap: "space-01",
|
|
15168
|
+
style: {
|
|
15169
|
+
gridArea: "label-description"
|
|
15170
|
+
},
|
|
15171
|
+
children: [
|
|
15172
|
+
!isIntegratedLabel && /* @__PURE__ */ jsx288(
|
|
15173
|
+
Label,
|
|
15174
|
+
{
|
|
15175
|
+
htmlFor: computedId,
|
|
15176
|
+
required,
|
|
15177
|
+
children: label
|
|
15178
|
+
}
|
|
15179
|
+
),
|
|
15180
|
+
hasDescription ? /* @__PURE__ */ jsx288(FormControlLabelDescription, { id: descriptionId, children: description }) : null
|
|
15181
|
+
]
|
|
15142
15182
|
}
|
|
15143
|
-
),
|
|
15144
|
-
isNotNil28(description) ? /* @__PURE__ */ jsx288(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
|
|
15183
|
+
) : null,
|
|
15145
15184
|
cloneElement8(children, childProps),
|
|
15146
|
-
|
|
15147
|
-
|
|
15148
|
-
|
|
15149
|
-
|
|
15150
|
-
|
|
15151
|
-
|
|
15152
|
-
|
|
15153
|
-
}
|
|
15154
|
-
)
|
|
15155
|
-
] }) : null
|
|
15185
|
+
hasError ? /* @__PURE__ */ jsx288(
|
|
15186
|
+
ErrorMessages,
|
|
15187
|
+
{
|
|
15188
|
+
errors: computedError,
|
|
15189
|
+
id: errorId
|
|
15190
|
+
}
|
|
15191
|
+
) : null
|
|
15156
15192
|
]
|
|
15157
15193
|
}
|
|
15158
15194
|
);
|
|
@@ -15188,24 +15224,24 @@ RadioGroup.displayName = "RadioGroup_UI";
|
|
|
15188
15224
|
|
|
15189
15225
|
// src/components/Grid/Grid.tsx
|
|
15190
15226
|
import { forwardRef as forwardRef22 } from "react";
|
|
15191
|
-
import { styled as styled68, css as
|
|
15227
|
+
import { styled as styled68, css as css37 } from "styled-components";
|
|
15192
15228
|
import { isRecord as isRecord5 } from "@wistia/type-guards";
|
|
15193
15229
|
import { jsx as jsx290 } from "react/jsx-runtime";
|
|
15194
15230
|
var DEFAULT_ELEMENT5 = "div";
|
|
15195
15231
|
var getGridTemplateColumns = (maxColumns, minChildWidth, expandItems) => {
|
|
15196
15232
|
if (minChildWidth === "auto" && maxColumns === "auto") {
|
|
15197
|
-
return
|
|
15233
|
+
return css37`
|
|
15198
15234
|
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
15199
15235
|
`;
|
|
15200
15236
|
}
|
|
15201
15237
|
const gridMode = expandItems ? "auto-fit" : "auto-fill";
|
|
15202
15238
|
const minChildWidthValue = minChildWidth === "auto" ? 0 : minChildWidth;
|
|
15203
15239
|
if (maxColumns === "auto") {
|
|
15204
|
-
return
|
|
15240
|
+
return css37`
|
|
15205
15241
|
grid-template-columns: repeat(${gridMode}, minmax(${minChildWidthValue}px, 1fr));
|
|
15206
15242
|
`;
|
|
15207
15243
|
}
|
|
15208
|
-
return
|
|
15244
|
+
return css37`
|
|
15209
15245
|
/* Adapted from https://9elements.com/blog/building-a-rock-solid-auto-grid/ */
|
|
15210
15246
|
--wui-grid-total-column-gap-width: calc(${maxColumns - 1} * var(--wui-grid-column-gap));
|
|
15211
15247
|
--wui-grid-max-column-width: calc(
|
|
@@ -15489,7 +15525,7 @@ KeyboardShortcut.displayName = "KeyboardShortcut_UI";
|
|
|
15489
15525
|
|
|
15490
15526
|
// src/components/List/List.tsx
|
|
15491
15527
|
import { isNotNil as isNotNil30 } from "@wistia/type-guards";
|
|
15492
|
-
import { styled as styled73, css as
|
|
15528
|
+
import { styled as styled73, css as css38 } from "styled-components";
|
|
15493
15529
|
|
|
15494
15530
|
// src/components/List/ListItem.tsx
|
|
15495
15531
|
import { styled as styled72 } from "styled-components";
|
|
@@ -15508,7 +15544,7 @@ ListItem.displayName = "ListItem_UI";
|
|
|
15508
15544
|
|
|
15509
15545
|
// src/components/List/List.tsx
|
|
15510
15546
|
import { jsx as jsx295, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
15511
|
-
var spacesStyle =
|
|
15547
|
+
var spacesStyle = css38`
|
|
15512
15548
|
overflow: hidden;
|
|
15513
15549
|
padding-left: 0;
|
|
15514
15550
|
vertical-align: bottom;
|
|
@@ -15530,7 +15566,7 @@ var spacesStyle = css37`
|
|
|
15530
15566
|
}
|
|
15531
15567
|
}
|
|
15532
15568
|
`;
|
|
15533
|
-
var commasStyle =
|
|
15569
|
+
var commasStyle = css38`
|
|
15534
15570
|
${spacesStyle};
|
|
15535
15571
|
|
|
15536
15572
|
li {
|
|
@@ -15540,7 +15576,7 @@ var commasStyle = css37`
|
|
|
15540
15576
|
}
|
|
15541
15577
|
}
|
|
15542
15578
|
`;
|
|
15543
|
-
var slashesStyle =
|
|
15579
|
+
var slashesStyle = css38`
|
|
15544
15580
|
${spacesStyle};
|
|
15545
15581
|
|
|
15546
15582
|
li {
|
|
@@ -15551,7 +15587,7 @@ var slashesStyle = css37`
|
|
|
15551
15587
|
}
|
|
15552
15588
|
}
|
|
15553
15589
|
`;
|
|
15554
|
-
var breadcrumbsStyle =
|
|
15590
|
+
var breadcrumbsStyle = css38`
|
|
15555
15591
|
${spacesStyle};
|
|
15556
15592
|
|
|
15557
15593
|
li {
|
|
@@ -15562,7 +15598,7 @@ var breadcrumbsStyle = css37`
|
|
|
15562
15598
|
}
|
|
15563
15599
|
}
|
|
15564
15600
|
`;
|
|
15565
|
-
var unbulletedStyle =
|
|
15601
|
+
var unbulletedStyle = css38`
|
|
15566
15602
|
list-style: none;
|
|
15567
15603
|
padding-left: 0;
|
|
15568
15604
|
`;
|
|
@@ -15744,7 +15780,7 @@ var ModalHeader = ({
|
|
|
15744
15780
|
|
|
15745
15781
|
// src/components/Modal/ModalContent.tsx
|
|
15746
15782
|
import { forwardRef as forwardRef25 } from "react";
|
|
15747
|
-
import { styled as styled77, css as
|
|
15783
|
+
import { styled as styled77, css as css39, keyframes as keyframes4 } from "styled-components";
|
|
15748
15784
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
15749
15785
|
|
|
15750
15786
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -15790,7 +15826,7 @@ var modalExit = keyframes4`
|
|
|
15790
15826
|
transform: translateX(-50%) translateY(calc(var(--wui-modal-translate-y) + 24px));
|
|
15791
15827
|
}
|
|
15792
15828
|
`;
|
|
15793
|
-
var centeredModalStyles =
|
|
15829
|
+
var centeredModalStyles = css39`
|
|
15794
15830
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
15795
15831
|
--wui-modal-translate-y: -50%;
|
|
15796
15832
|
|
|
@@ -15806,7 +15842,7 @@ var centeredModalStyles = css38`
|
|
|
15806
15842
|
animation: ${modalExit} var(--wui-motion-duration-03) var(--wui-motion-ease-out);
|
|
15807
15843
|
}
|
|
15808
15844
|
`;
|
|
15809
|
-
var fixedTopModalStyles =
|
|
15845
|
+
var fixedTopModalStyles = css39`
|
|
15810
15846
|
--wui-modal-screen-offset-top: 15vh;
|
|
15811
15847
|
--wui-modal-screen-offset-bottom: 5vh;
|
|
15812
15848
|
--wui-modal-translate-y: 0%;
|
|
@@ -15847,7 +15883,7 @@ var slideOutRight = keyframes4`
|
|
|
15847
15883
|
transform: translateX(100%);
|
|
15848
15884
|
}
|
|
15849
15885
|
`;
|
|
15850
|
-
var rightSidePanelModalStyles =
|
|
15886
|
+
var rightSidePanelModalStyles = css39`
|
|
15851
15887
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
15852
15888
|
|
|
15853
15889
|
height: calc(100vh - var(--wui-modal-screen-offset) * 2);
|
|
@@ -16045,7 +16081,7 @@ ModalCallout.displayName = "ModalCallout_UI";
|
|
|
16045
16081
|
|
|
16046
16082
|
// src/components/Popover/Popover.tsx
|
|
16047
16083
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
16048
|
-
import { styled as styled81, css as
|
|
16084
|
+
import { styled as styled81, css as css41 } from "styled-components";
|
|
16049
16085
|
|
|
16050
16086
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
16051
16087
|
import { isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
@@ -16055,7 +16091,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
16055
16091
|
|
|
16056
16092
|
// src/components/Popover/PopoverArrow.tsx
|
|
16057
16093
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
16058
|
-
import { styled as styled80, css as
|
|
16094
|
+
import { styled as styled80, css as css40, keyframes as keyframes6 } from "styled-components";
|
|
16059
16095
|
import { jsx as jsx302, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
16060
16096
|
var StyledPath = styled80.path`
|
|
16061
16097
|
fill: var(--wui-color-border-secondary);
|
|
@@ -16089,7 +16125,7 @@ var StyledCircle = styled80.circle`
|
|
|
16089
16125
|
}
|
|
16090
16126
|
|
|
16091
16127
|
@media (prefers-reduced-motion: no-preference) {
|
|
16092
|
-
${({ $isAnimated }) => $isAnimated &&
|
|
16128
|
+
${({ $isAnimated }) => $isAnimated && css40`
|
|
16093
16129
|
animation-name: ${circleAnimation};
|
|
16094
16130
|
`}
|
|
16095
16131
|
}
|
|
@@ -16138,7 +16174,7 @@ import { jsx as jsx303, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
|
16138
16174
|
var StyledContent2 = styled81(Content2)`
|
|
16139
16175
|
z-index: var(--wui-zindex-popover);
|
|
16140
16176
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
16141
|
-
${({ $unstyled }) => !$unstyled &&
|
|
16177
|
+
${({ $unstyled }) => !$unstyled && css41`
|
|
16142
16178
|
border-radius: var(--wui-border-radius-02);
|
|
16143
16179
|
padding: var(--wui-space-04);
|
|
16144
16180
|
max-width: var(--wui-popover-max-width, 320px);
|
|
@@ -16288,17 +16324,17 @@ ProgressBar.displayName = "ProgressBar_UI";
|
|
|
16288
16324
|
// src/components/Radio/Radio.tsx
|
|
16289
16325
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
|
|
16290
16326
|
import { forwardRef as forwardRef27, useId as useId5 } from "react";
|
|
16291
|
-
import { styled as styled83, css as
|
|
16327
|
+
import { styled as styled83, css as css42 } from "styled-components";
|
|
16292
16328
|
import { jsx as jsx305, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
16293
|
-
var sizeSmall2 =
|
|
16329
|
+
var sizeSmall2 = css42`
|
|
16294
16330
|
--wui-radio-size: 14px;
|
|
16295
16331
|
--wui-radio-icon-size: 7px;
|
|
16296
16332
|
`;
|
|
16297
|
-
var sizeMedium2 =
|
|
16333
|
+
var sizeMedium2 = css42`
|
|
16298
16334
|
--wui-radio-size: 16px;
|
|
16299
16335
|
--wui-radio-icon-size: 8px;
|
|
16300
16336
|
`;
|
|
16301
|
-
var sizeLarge2 =
|
|
16337
|
+
var sizeLarge2 = css42`
|
|
16302
16338
|
--wui-radio-size: 20px;
|
|
16303
16339
|
--wui-radio-icon-size: 10px;
|
|
16304
16340
|
`;
|
|
@@ -16439,17 +16475,17 @@ import { forwardRef as forwardRef29 } from "react";
|
|
|
16439
16475
|
|
|
16440
16476
|
// src/components/RadioCard/RadioCardRoot.tsx
|
|
16441
16477
|
import { forwardRef as forwardRef28, useId as useId6 } from "react";
|
|
16442
|
-
import { styled as styled84, css as
|
|
16478
|
+
import { styled as styled84, css as css43 } from "styled-components";
|
|
16443
16479
|
import { isNonEmptyString as isNonEmptyString8, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
16444
16480
|
import { jsx as jsx306, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
16445
|
-
var checkedStyles =
|
|
16481
|
+
var checkedStyles = css43`
|
|
16446
16482
|
--wui-radio-card-border-color: var(--wui-color-focus-ring);
|
|
16447
16483
|
--wui-color-icon: var(--wui-color-icon-selected);
|
|
16448
16484
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-info);
|
|
16449
16485
|
--wui-color-text: var(--wui-color-text-info);
|
|
16450
16486
|
--wui-color-text-secondary: var(--wui-color-text-info);
|
|
16451
16487
|
`;
|
|
16452
|
-
var disabledStyles =
|
|
16488
|
+
var disabledStyles = css43`
|
|
16453
16489
|
--wui-radio-card-border-color: var(--wui-color-border-disabled);
|
|
16454
16490
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-disabled);
|
|
16455
16491
|
--wui-radio-card-cursor: not-allowed;
|
|
@@ -16457,10 +16493,10 @@ var disabledStyles = css42`
|
|
|
16457
16493
|
--wui-color-text: var(--wui-color-text-disabled);
|
|
16458
16494
|
--wui-color-text-secondary: var(--wui-color-text-disabled);
|
|
16459
16495
|
`;
|
|
16460
|
-
var focusStyles =
|
|
16496
|
+
var focusStyles = css43`
|
|
16461
16497
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
16462
16498
|
`;
|
|
16463
|
-
var imageCoverStyles =
|
|
16499
|
+
var imageCoverStyles = css43`
|
|
16464
16500
|
--wui-radio-card-image-inset: 0px;
|
|
16465
16501
|
--wui-radio-card-border-width: 0px;
|
|
16466
16502
|
--wui-inset-shadow-width: 1px;
|
|
@@ -16866,7 +16902,7 @@ ScrollArea.displayName = "ScrollArea_UI";
|
|
|
16866
16902
|
|
|
16867
16903
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
16868
16904
|
import { forwardRef as forwardRef32 } from "react";
|
|
16869
|
-
import { styled as styled90, css as
|
|
16905
|
+
import { styled as styled90, css as css45 } from "styled-components";
|
|
16870
16906
|
import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
|
|
16871
16907
|
import { isNil as isNil18 } from "@wistia/type-guards";
|
|
16872
16908
|
|
|
@@ -16904,7 +16940,7 @@ var useSelectedItemStyle = () => {
|
|
|
16904
16940
|
};
|
|
16905
16941
|
|
|
16906
16942
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
16907
|
-
import { styled as styled89, css as
|
|
16943
|
+
import { styled as styled89, css as css44 } from "styled-components";
|
|
16908
16944
|
import { isUndefined as isUndefined5 } from "@wistia/type-guards";
|
|
16909
16945
|
|
|
16910
16946
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
@@ -16921,7 +16957,7 @@ var useSegmentedControlValue = () => {
|
|
|
16921
16957
|
|
|
16922
16958
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
16923
16959
|
import { jsx as jsx312 } from "react/jsx-runtime";
|
|
16924
|
-
var selectedItemIndicatorStyles =
|
|
16960
|
+
var selectedItemIndicatorStyles = css44`
|
|
16925
16961
|
background-color: var(--wui-color-bg-fill-white);
|
|
16926
16962
|
border-radius: var(--wui-border-radius-rounded);
|
|
16927
16963
|
box-shadow: var(--wui-elevation-01);
|
|
@@ -16953,7 +16989,7 @@ var SelectedItemIndicator = () => {
|
|
|
16953
16989
|
|
|
16954
16990
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
16955
16991
|
import { jsx as jsx313, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
16956
|
-
var segmentedControlStyles =
|
|
16992
|
+
var segmentedControlStyles = css45`
|
|
16957
16993
|
display: inline-flex;
|
|
16958
16994
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
16959
16995
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17003,11 +17039,11 @@ SegmentedControl.displayName = "SegmentedControl_UI";
|
|
|
17003
17039
|
|
|
17004
17040
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
17005
17041
|
import { forwardRef as forwardRef33, useEffect as useEffect21, useRef as useRef22 } from "react";
|
|
17006
|
-
import { styled as styled91, css as
|
|
17042
|
+
import { styled as styled91, css as css46 } from "styled-components";
|
|
17007
17043
|
import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
|
|
17008
17044
|
import { isNotNil as isNotNil36 } from "@wistia/type-guards";
|
|
17009
17045
|
import { jsxs as jsxs63 } from "react/jsx-runtime";
|
|
17010
|
-
var segmentedControlItemStyles =
|
|
17046
|
+
var segmentedControlItemStyles = css46`
|
|
17011
17047
|
all: unset; /* ToggleGroupItem is a button element */
|
|
17012
17048
|
align-items: center;
|
|
17013
17049
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17148,7 +17184,7 @@ import {
|
|
|
17148
17184
|
ScrollDownButton
|
|
17149
17185
|
} from "@radix-ui/react-select";
|
|
17150
17186
|
import { forwardRef as forwardRef34 } from "react";
|
|
17151
|
-
import { styled as styled92, css as
|
|
17187
|
+
import { styled as styled92, css as css47 } from "styled-components";
|
|
17152
17188
|
import { jsx as jsx314, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
17153
17189
|
var StyledTrigger2 = styled92(Trigger3)`
|
|
17154
17190
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -17219,7 +17255,7 @@ var StyledContent3 = styled92(Content3)`
|
|
|
17219
17255
|
margin: var(--wui-space-02) 0;
|
|
17220
17256
|
}
|
|
17221
17257
|
`;
|
|
17222
|
-
var scrollButtonStyles =
|
|
17258
|
+
var scrollButtonStyles = css47`
|
|
17223
17259
|
align-items: center;
|
|
17224
17260
|
display: flex;
|
|
17225
17261
|
justify-content: center;
|
|
@@ -17505,25 +17541,25 @@ var Slider = ({
|
|
|
17505
17541
|
Slider.displayName = "Slider_UI";
|
|
17506
17542
|
|
|
17507
17543
|
// src/components/Table/Table.tsx
|
|
17508
|
-
import { styled as styled96, css as
|
|
17544
|
+
import { styled as styled96, css as css48 } from "styled-components";
|
|
17509
17545
|
import { jsx as jsx318 } from "react/jsx-runtime";
|
|
17510
17546
|
var StyledTable = styled96.table`
|
|
17511
17547
|
width: 100%;
|
|
17512
17548
|
border-collapse: collapse;
|
|
17513
17549
|
|
|
17514
|
-
${({ $divided }) => $divided &&
|
|
17550
|
+
${({ $divided }) => $divided && css48`
|
|
17515
17551
|
tr {
|
|
17516
17552
|
border-bottom: 1px solid var(--wui-color-border);
|
|
17517
17553
|
}
|
|
17518
17554
|
`}
|
|
17519
17555
|
|
|
17520
|
-
${({ $striped }) => $striped &&
|
|
17556
|
+
${({ $striped }) => $striped && css48`
|
|
17521
17557
|
tbody tr:nth-child(even) {
|
|
17522
17558
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
17523
17559
|
}
|
|
17524
17560
|
`}
|
|
17525
17561
|
|
|
17526
|
-
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader &&
|
|
17562
|
+
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && css48`
|
|
17527
17563
|
thead {
|
|
17528
17564
|
${visuallyHiddenStyle}
|
|
17529
17565
|
}
|
|
@@ -17549,7 +17585,6 @@ var Table = ({
|
|
|
17549
17585
|
};
|
|
17550
17586
|
|
|
17551
17587
|
// src/components/Table/TableBody.tsx
|
|
17552
|
-
import "react";
|
|
17553
17588
|
import { styled as styled97 } from "styled-components";
|
|
17554
17589
|
|
|
17555
17590
|
// src/components/Table/TableSectionContext.ts
|
|
@@ -17565,9 +17600,9 @@ var TableBody = ({ children, ...props }) => {
|
|
|
17565
17600
|
|
|
17566
17601
|
// src/components/Table/TableCell.tsx
|
|
17567
17602
|
import { useContext as useContext17 } from "react";
|
|
17568
|
-
import { styled as styled98, css as
|
|
17603
|
+
import { styled as styled98, css as css49 } from "styled-components";
|
|
17569
17604
|
import { jsx as jsx320 } from "react/jsx-runtime";
|
|
17570
|
-
var sharedStyles =
|
|
17605
|
+
var sharedStyles = css49`
|
|
17571
17606
|
color: var(--wui-color-text);
|
|
17572
17607
|
padding: var(--wui-space-02);
|
|
17573
17608
|
text-align: left;
|
|
@@ -17593,7 +17628,6 @@ var TableCell = ({ children, ...props }) => {
|
|
|
17593
17628
|
};
|
|
17594
17629
|
|
|
17595
17630
|
// src/components/Table/TableFoot.tsx
|
|
17596
|
-
import "react";
|
|
17597
17631
|
import { styled as styled99 } from "styled-components";
|
|
17598
17632
|
import { jsx as jsx321 } from "react/jsx-runtime";
|
|
17599
17633
|
var StyledTableFoot = styled99.tfoot``;
|
|
@@ -17602,7 +17636,6 @@ var TableFoot = ({ children, ...props }) => {
|
|
|
17602
17636
|
};
|
|
17603
17637
|
|
|
17604
17638
|
// src/components/Table/TableHead.tsx
|
|
17605
|
-
import "react";
|
|
17606
17639
|
import { styled as styled100 } from "styled-components";
|
|
17607
17640
|
import { jsx as jsx322 } from "react/jsx-runtime";
|
|
17608
17641
|
var StyledThead = styled100.thead``;
|
|
@@ -17846,9 +17879,9 @@ import {
|
|
|
17846
17879
|
|
|
17847
17880
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
17848
17881
|
import { isNotNil as isNotNil41 } from "@wistia/type-guards";
|
|
17849
|
-
import { css as
|
|
17882
|
+
import { css as css50 } from "styled-components";
|
|
17850
17883
|
var gradients = {
|
|
17851
|
-
defaultDarkOne:
|
|
17884
|
+
defaultDarkOne: css50`
|
|
17852
17885
|
background-color: #222d66;
|
|
17853
17886
|
background-image:
|
|
17854
17887
|
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
@@ -17856,7 +17889,7 @@ var gradients = {
|
|
|
17856
17889
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
17857
17890
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
17858
17891
|
`,
|
|
17859
|
-
defaultDarkTwo:
|
|
17892
|
+
defaultDarkTwo: css50`
|
|
17860
17893
|
background-color: #222d66;
|
|
17861
17894
|
background-image:
|
|
17862
17895
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
@@ -17864,7 +17897,7 @@ var gradients = {
|
|
|
17864
17897
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
17865
17898
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
17866
17899
|
`,
|
|
17867
|
-
defaultLightOne:
|
|
17900
|
+
defaultLightOne: css50`
|
|
17868
17901
|
background-color: #ccd5ff;
|
|
17869
17902
|
background-image:
|
|
17870
17903
|
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
@@ -17872,13 +17905,13 @@ var gradients = {
|
|
|
17872
17905
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
17873
17906
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
17874
17907
|
`,
|
|
17875
|
-
defaultLightTwo:
|
|
17908
|
+
defaultLightTwo: css50`
|
|
17876
17909
|
background-color: #ccd5ff;
|
|
17877
17910
|
background-image:
|
|
17878
17911
|
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
17879
17912
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
17880
17913
|
`,
|
|
17881
|
-
defaultMidOne:
|
|
17914
|
+
defaultMidOne: css50`
|
|
17882
17915
|
background-color: #6b84ff;
|
|
17883
17916
|
background-image:
|
|
17884
17917
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
@@ -17886,13 +17919,13 @@ var gradients = {
|
|
|
17886
17919
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
17887
17920
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
17888
17921
|
`,
|
|
17889
|
-
defaultMidTwo:
|
|
17922
|
+
defaultMidTwo: css50`
|
|
17890
17923
|
background-color: #6b84ff;
|
|
17891
17924
|
background-image:
|
|
17892
17925
|
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
17893
17926
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
17894
17927
|
`,
|
|
17895
|
-
green:
|
|
17928
|
+
green: css50`
|
|
17896
17929
|
background-color: #fafffa;
|
|
17897
17930
|
background-image:
|
|
17898
17931
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -17900,7 +17933,7 @@ var gradients = {
|
|
|
17900
17933
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
17901
17934
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
17902
17935
|
`,
|
|
17903
|
-
greenWithPop:
|
|
17936
|
+
greenWithPop: css50`
|
|
17904
17937
|
background-color: #fafffa;
|
|
17905
17938
|
background-image:
|
|
17906
17939
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -17908,7 +17941,7 @@ var gradients = {
|
|
|
17908
17941
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
17909
17942
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
17910
17943
|
`,
|
|
17911
|
-
pink:
|
|
17944
|
+
pink: css50`
|
|
17912
17945
|
background-color: #fffff0;
|
|
17913
17946
|
background-image:
|
|
17914
17947
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
@@ -17916,7 +17949,7 @@ var gradients = {
|
|
|
17916
17949
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
17917
17950
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
17918
17951
|
`,
|
|
17919
|
-
pinkWithPop:
|
|
17952
|
+
pinkWithPop: css50`
|
|
17920
17953
|
background-color: #fffff0;
|
|
17921
17954
|
background-image:
|
|
17922
17955
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
@@ -17924,7 +17957,7 @@ var gradients = {
|
|
|
17924
17957
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
17925
17958
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
17926
17959
|
`,
|
|
17927
|
-
playfulGradientOne:
|
|
17960
|
+
playfulGradientOne: css50`
|
|
17928
17961
|
background-color: #f7f8ff;
|
|
17929
17962
|
background-image:
|
|
17930
17963
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
@@ -17932,7 +17965,7 @@ var gradients = {
|
|
|
17932
17965
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
17933
17966
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
17934
17967
|
`,
|
|
17935
|
-
playfulGradientTwo:
|
|
17968
|
+
playfulGradientTwo: css50`
|
|
17936
17969
|
background-color: #f7f8ff;
|
|
17937
17970
|
background-image:
|
|
17938
17971
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
@@ -17940,13 +17973,13 @@ var gradients = {
|
|
|
17940
17973
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
17941
17974
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
17942
17975
|
`,
|
|
17943
|
-
purple:
|
|
17976
|
+
purple: css50`
|
|
17944
17977
|
background-color: #f2caff;
|
|
17945
17978
|
background-image:
|
|
17946
17979
|
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
17947
17980
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
17948
17981
|
`,
|
|
17949
|
-
purpleWithPop:
|
|
17982
|
+
purpleWithPop: css50`
|
|
17950
17983
|
background-color: #f2caff;
|
|
17951
17984
|
background-image:
|
|
17952
17985
|
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
@@ -17954,7 +17987,7 @@ var gradients = {
|
|
|
17954
17987
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
17955
17988
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
17956
17989
|
`,
|
|
17957
|
-
yellow:
|
|
17990
|
+
yellow: css50`
|
|
17958
17991
|
background-color: #fffff0;
|
|
17959
17992
|
background-image:
|
|
17960
17993
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -17962,7 +17995,7 @@ var gradients = {
|
|
|
17962
17995
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
17963
17996
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
17964
17997
|
`,
|
|
17965
|
-
yellowWithPop:
|
|
17998
|
+
yellowWithPop: css50`
|
|
17966
17999
|
background-color: #fffff0;
|
|
17967
18000
|
background-image:
|
|
17968
18001
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -18334,7 +18367,7 @@ var Thumbnail = forwardRef37(
|
|
|
18334
18367
|
Thumbnail.displayName = "Thumbnail_UI";
|
|
18335
18368
|
|
|
18336
18369
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
18337
|
-
import
|
|
18370
|
+
import { cloneElement as cloneElement9, Children as Children11 } from "react";
|
|
18338
18371
|
import { styled as styled108 } from "styled-components";
|
|
18339
18372
|
import { isNonEmptyArray } from "@wistia/type-guards";
|
|
18340
18373
|
import { jsx as jsx331 } from "react/jsx-runtime";
|
|
@@ -18393,10 +18426,10 @@ var ThumbnailCollage = ({
|
|
|
18393
18426
|
gradientBackground = "defaultMidOne",
|
|
18394
18427
|
...props
|
|
18395
18428
|
}) => {
|
|
18396
|
-
const thumbnailArray =
|
|
18429
|
+
const thumbnailArray = Children11.toArray(children);
|
|
18397
18430
|
const truncatedThumbnails = thumbnailArray.slice(0, 3);
|
|
18398
18431
|
const thumbnails = isNonEmptyArray(thumbnailArray) ? truncatedThumbnails.map((child) => {
|
|
18399
|
-
return
|
|
18432
|
+
return cloneElement9(child, {
|
|
18400
18433
|
...child.props,
|
|
18401
18434
|
children: void 0
|
|
18402
18435
|
});
|
|
@@ -18423,7 +18456,7 @@ var ThumbnailCollage = ({
|
|
|
18423
18456
|
};
|
|
18424
18457
|
|
|
18425
18458
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
18426
|
-
import { styled as styled109, css as
|
|
18459
|
+
import { styled as styled109, css as css51 } from "styled-components";
|
|
18427
18460
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
18428
18461
|
import { jsx as jsx332, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
18429
18462
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -18481,12 +18514,12 @@ var WistiaLogoComponent = styled109.svg`
|
|
|
18481
18514
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
18482
18515
|
if ($opticallyCentered) {
|
|
18483
18516
|
if ($iconOnly) {
|
|
18484
|
-
return
|
|
18517
|
+
return css51`
|
|
18485
18518
|
aspect-ratio: 1;
|
|
18486
18519
|
padding: 11.85% 3.12% 13.91%;
|
|
18487
18520
|
`;
|
|
18488
18521
|
}
|
|
18489
|
-
return
|
|
18522
|
+
return css51`
|
|
18490
18523
|
aspect-ratio: 127 / 32;
|
|
18491
18524
|
`;
|
|
18492
18525
|
}
|
|
@@ -18550,7 +18583,7 @@ WistiaLogo.displayName = "WistiaLogo_UI";
|
|
|
18550
18583
|
// src/components/SplitButton/SplitButton.tsx
|
|
18551
18584
|
import { styled as styled110 } from "styled-components";
|
|
18552
18585
|
import { isNotNil as isNotNil45 } from "@wistia/type-guards";
|
|
18553
|
-
import { cloneElement as
|
|
18586
|
+
import { cloneElement as cloneElement10 } from "react";
|
|
18554
18587
|
import { jsx as jsx333, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
18555
18588
|
var StyledSplitButton = styled110.span`
|
|
18556
18589
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -18615,7 +18648,7 @@ var SplitButton = ({
|
|
|
18615
18648
|
children: menuItems
|
|
18616
18649
|
}
|
|
18617
18650
|
),
|
|
18618
|
-
isNotNil45(secondaryAction) &&
|
|
18651
|
+
isNotNil45(secondaryAction) && cloneElement10(secondaryAction, { disabled, size, unstyled, variant, colorScheme })
|
|
18619
18652
|
] });
|
|
18620
18653
|
};
|
|
18621
18654
|
SplitButton.displayName = "SplitButton_UI";
|