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