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