@wistia/ui 0.18.17-beta.c1f00b80.e6809d4 → 0.18.18-beta.d3fdc545.1470a35
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 +61 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +124 -89
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.
|
|
3
|
+
* @license @wistia/ui v0.18.18-beta.d3fdc545.1470a35
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -14007,7 +14007,6 @@ var StyledDataCard = styled58.div`
|
|
|
14007
14007
|
animation: ${pulse} 1.5s var(--wui-motion-ease-in-out) 0.5s infinite;
|
|
14008
14008
|
color: transparent;
|
|
14009
14009
|
user-select: none;
|
|
14010
|
-
pointer-events: none;
|
|
14011
14010
|
border-radius: var(--wui-border-radius-01);
|
|
14012
14011
|
width: fit-content;
|
|
14013
14012
|
}
|
|
@@ -14056,12 +14055,14 @@ var StyledDataCard = styled58.div`
|
|
|
14056
14055
|
`;
|
|
14057
14056
|
var StyledLabel3 = styled58(Heading)`
|
|
14058
14057
|
grid-area: label;
|
|
14058
|
+
|
|
14059
14059
|
&[data-wui-data-card-skeleton='true'] {
|
|
14060
14060
|
width: 80px;
|
|
14061
14061
|
}
|
|
14062
14062
|
`;
|
|
14063
14063
|
var StyledValue = styled58(Heading)`
|
|
14064
14064
|
grid-area: value;
|
|
14065
|
+
|
|
14065
14066
|
&[data-wui-data-card-skeleton='true'] {
|
|
14066
14067
|
width: min(90%, 156px);
|
|
14067
14068
|
}
|
|
@@ -15074,11 +15075,23 @@ var FormErrorSummary = ({ description }) => {
|
|
|
15074
15075
|
|
|
15075
15076
|
// src/components/FormField/FormField.tsx
|
|
15076
15077
|
import { Children as Children10, cloneElement as cloneElement8, useContext as useContext13 } from "react";
|
|
15077
|
-
import { styled as styled68 } from "styled-components";
|
|
15078
|
+
import { styled as styled68, css as css36 } from "styled-components";
|
|
15078
15079
|
import { isArray as isArray4, isNotNil as isNotNil28, isNotUndefined as isNotUndefined12, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
15079
|
-
import {
|
|
15080
|
+
import { jsx as jsx293, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
15081
|
+
var inlineErrorStyles = css36`
|
|
15082
|
+
grid-template-rows: 1fr auto;
|
|
15083
|
+
grid-template-areas: 'label-description input' '. error';
|
|
15084
|
+
`;
|
|
15085
|
+
var inlineBaseGridAreaStyles = css36`
|
|
15086
|
+
grid-template-rows: 1fr;
|
|
15087
|
+
grid-template-areas: 'label-description input';
|
|
15088
|
+
`;
|
|
15089
|
+
var blockGridErrorStyles = css36`
|
|
15090
|
+
grid-template-rows: auto 1fr auto;
|
|
15091
|
+
grid-template-areas: 'label-description' 'input' 'error';
|
|
15092
|
+
`;
|
|
15080
15093
|
var StyledFormField = styled68.div`
|
|
15081
|
-
--form-field-spacing: var(--wui-space-
|
|
15094
|
+
--form-field-spacing: var(--wui-space-02);
|
|
15082
15095
|
--form-field-spacing-inline: var(--wui-space-02);
|
|
15083
15096
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
15084
15097
|
|
|
@@ -15092,21 +15105,28 @@ var StyledFormField = styled68.div`
|
|
|
15092
15105
|
&[data-label-position='inline-compact'] {
|
|
15093
15106
|
gap: var(--form-field-spacing-inline);
|
|
15094
15107
|
grid-template-columns: auto 1fr;
|
|
15095
|
-
|
|
15108
|
+
${inlineBaseGridAreaStyles}
|
|
15109
|
+
${({ $hasError }) => $hasError && inlineErrorStyles}
|
|
15096
15110
|
}
|
|
15097
15111
|
|
|
15098
15112
|
&[data-label-position='inline'] {
|
|
15099
15113
|
gap: var(--form-field-spacing-inline);
|
|
15100
15114
|
grid-template-columns: minmax(auto, 1fr) 1fr;
|
|
15101
|
-
|
|
15115
|
+
${inlineBaseGridAreaStyles}
|
|
15116
|
+
${({ $hasError }) => $hasError && inlineErrorStyles}
|
|
15102
15117
|
}
|
|
15103
15118
|
|
|
15104
15119
|
&[data-label-position='block'] {
|
|
15105
15120
|
gap: var(--form-field-spacing);
|
|
15106
15121
|
grid-template-columns: 1fr;
|
|
15107
|
-
grid-template-rows: 1fr;
|
|
15122
|
+
grid-template-rows: auto 1fr;
|
|
15123
|
+
grid-template-areas: 'label-description' 'input';
|
|
15124
|
+
${({ $hasError }) => $hasError && blockGridErrorStyles}
|
|
15108
15125
|
}
|
|
15109
15126
|
`;
|
|
15127
|
+
var ErrorText = styled68(Text)`
|
|
15128
|
+
grid-area: error;
|
|
15129
|
+
`;
|
|
15110
15130
|
var StyledErrorList = styled68.ul`
|
|
15111
15131
|
margin: 0;
|
|
15112
15132
|
padding: 0;
|
|
@@ -15114,13 +15134,14 @@ var StyledErrorList = styled68.ul`
|
|
|
15114
15134
|
display: flex;
|
|
15115
15135
|
flex-direction: column;
|
|
15116
15136
|
gap: var(--wui-space-01);
|
|
15137
|
+
grid-area: error;
|
|
15117
15138
|
`;
|
|
15118
15139
|
var ErrorMessages = ({ errors, id }) => {
|
|
15119
15140
|
const isErrorArray = isArray4(errors);
|
|
15120
15141
|
const isMultipleErrors = isErrorArray && errors.length > 1;
|
|
15121
15142
|
if (!isErrorArray) {
|
|
15122
15143
|
return /* @__PURE__ */ jsx293(
|
|
15123
|
-
|
|
15144
|
+
ErrorText,
|
|
15124
15145
|
{
|
|
15125
15146
|
colorScheme: "error",
|
|
15126
15147
|
id,
|
|
@@ -15133,7 +15154,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
15133
15154
|
}
|
|
15134
15155
|
if (!isMultipleErrors) {
|
|
15135
15156
|
return /* @__PURE__ */ jsx293(
|
|
15136
|
-
|
|
15157
|
+
ErrorText,
|
|
15137
15158
|
{
|
|
15138
15159
|
colorScheme: "error",
|
|
15139
15160
|
id,
|
|
@@ -15178,12 +15199,16 @@ var FormField = ({
|
|
|
15178
15199
|
const descriptionId = `${computedId}-description`;
|
|
15179
15200
|
const errorId = `${computedId}-error`;
|
|
15180
15201
|
const ariaDescribedby = [descriptionId, errorId].filter(Boolean).join(" ") || void 0;
|
|
15202
|
+
const hasDescription = isNotNil28(description);
|
|
15203
|
+
const hasError = isNotNil28(computedError);
|
|
15204
|
+
const shouldRenderLabelDescriptionWrapper = !isIntegratedLabel || hasDescription;
|
|
15181
15205
|
let childProps = {
|
|
15182
15206
|
name,
|
|
15183
15207
|
id: computedId,
|
|
15184
15208
|
label: isIntegratedLabel ? label : void 0,
|
|
15185
15209
|
"aria-describedby": ariaDescribedby,
|
|
15186
|
-
"aria-invalid":
|
|
15210
|
+
"aria-invalid": hasError,
|
|
15211
|
+
style: { gridArea: "input" },
|
|
15187
15212
|
...props
|
|
15188
15213
|
};
|
|
15189
15214
|
if (isUndefined4(value) && isNotUndefined12(defaultValue)) {
|
|
@@ -15213,28 +15238,38 @@ var FormField = ({
|
|
|
15213
15238
|
StyledFormField,
|
|
15214
15239
|
{
|
|
15215
15240
|
...props,
|
|
15241
|
+
$hasError: hasError,
|
|
15216
15242
|
"data-label-position": labelPosition ?? formState.labelPosition,
|
|
15217
15243
|
children: [
|
|
15218
|
-
|
|
15219
|
-
|
|
15244
|
+
shouldRenderLabelDescriptionWrapper ? /* @__PURE__ */ jsxs47(
|
|
15245
|
+
Stack,
|
|
15220
15246
|
{
|
|
15221
|
-
|
|
15222
|
-
|
|
15223
|
-
|
|
15247
|
+
direction: "vertical",
|
|
15248
|
+
gap: "space-01",
|
|
15249
|
+
style: {
|
|
15250
|
+
gridArea: "label-description"
|
|
15251
|
+
},
|
|
15252
|
+
children: [
|
|
15253
|
+
!isIntegratedLabel && /* @__PURE__ */ jsx293(
|
|
15254
|
+
Label,
|
|
15255
|
+
{
|
|
15256
|
+
htmlFor: computedId,
|
|
15257
|
+
required,
|
|
15258
|
+
children: label
|
|
15259
|
+
}
|
|
15260
|
+
),
|
|
15261
|
+
hasDescription ? /* @__PURE__ */ jsx293(FormControlLabelDescription, { id: descriptionId, children: description }) : null
|
|
15262
|
+
]
|
|
15224
15263
|
}
|
|
15225
|
-
),
|
|
15226
|
-
isNotNil28(description) ? /* @__PURE__ */ jsx293(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
|
|
15264
|
+
) : null,
|
|
15227
15265
|
cloneElement8(children, childProps),
|
|
15228
|
-
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
-
|
|
15232
|
-
|
|
15233
|
-
|
|
15234
|
-
|
|
15235
|
-
}
|
|
15236
|
-
)
|
|
15237
|
-
] }) : null
|
|
15266
|
+
hasError ? /* @__PURE__ */ jsx293(
|
|
15267
|
+
ErrorMessages,
|
|
15268
|
+
{
|
|
15269
|
+
errors: computedError,
|
|
15270
|
+
id: errorId
|
|
15271
|
+
}
|
|
15272
|
+
) : null
|
|
15238
15273
|
]
|
|
15239
15274
|
}
|
|
15240
15275
|
);
|
|
@@ -15270,24 +15305,24 @@ RadioGroup.displayName = "RadioGroup_UI";
|
|
|
15270
15305
|
|
|
15271
15306
|
// src/components/Grid/Grid.tsx
|
|
15272
15307
|
import { forwardRef as forwardRef22 } from "react";
|
|
15273
|
-
import { styled as styled69, css as
|
|
15308
|
+
import { styled as styled69, css as css37 } from "styled-components";
|
|
15274
15309
|
import { isRecord as isRecord5 } from "@wistia/type-guards";
|
|
15275
15310
|
import { jsx as jsx295 } from "react/jsx-runtime";
|
|
15276
15311
|
var DEFAULT_ELEMENT5 = "div";
|
|
15277
15312
|
var getGridTemplateColumns = (maxColumns, minChildWidth, expandItems) => {
|
|
15278
15313
|
if (minChildWidth === "auto" && maxColumns === "auto") {
|
|
15279
|
-
return
|
|
15314
|
+
return css37`
|
|
15280
15315
|
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
15281
15316
|
`;
|
|
15282
15317
|
}
|
|
15283
15318
|
const gridMode = expandItems ? "auto-fit" : "auto-fill";
|
|
15284
15319
|
const minChildWidthValue = minChildWidth === "auto" ? 0 : minChildWidth;
|
|
15285
15320
|
if (maxColumns === "auto") {
|
|
15286
|
-
return
|
|
15321
|
+
return css37`
|
|
15287
15322
|
grid-template-columns: repeat(${gridMode}, minmax(${minChildWidthValue}px, 1fr));
|
|
15288
15323
|
`;
|
|
15289
15324
|
}
|
|
15290
|
-
return
|
|
15325
|
+
return css37`
|
|
15291
15326
|
/* Adapted from https://9elements.com/blog/building-a-rock-solid-auto-grid/ */
|
|
15292
15327
|
--wui-grid-total-column-gap-width: calc(${maxColumns - 1} * var(--wui-grid-column-gap));
|
|
15293
15328
|
--wui-grid-max-column-width: calc(
|
|
@@ -15571,7 +15606,7 @@ KeyboardShortcut.displayName = "KeyboardShortcut_UI";
|
|
|
15571
15606
|
|
|
15572
15607
|
// src/components/List/List.tsx
|
|
15573
15608
|
import { isNotNil as isNotNil30 } from "@wistia/type-guards";
|
|
15574
|
-
import { styled as styled74, css as
|
|
15609
|
+
import { styled as styled74, css as css38 } from "styled-components";
|
|
15575
15610
|
|
|
15576
15611
|
// src/components/List/ListItem.tsx
|
|
15577
15612
|
import { styled as styled73 } from "styled-components";
|
|
@@ -15590,7 +15625,7 @@ ListItem.displayName = "ListItem_UI";
|
|
|
15590
15625
|
|
|
15591
15626
|
// src/components/List/List.tsx
|
|
15592
15627
|
import { jsx as jsx300, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
15593
|
-
var spacesStyle =
|
|
15628
|
+
var spacesStyle = css38`
|
|
15594
15629
|
overflow: hidden;
|
|
15595
15630
|
padding-left: 0;
|
|
15596
15631
|
vertical-align: bottom;
|
|
@@ -15612,7 +15647,7 @@ var spacesStyle = css37`
|
|
|
15612
15647
|
}
|
|
15613
15648
|
}
|
|
15614
15649
|
`;
|
|
15615
|
-
var commasStyle =
|
|
15650
|
+
var commasStyle = css38`
|
|
15616
15651
|
${spacesStyle};
|
|
15617
15652
|
|
|
15618
15653
|
li {
|
|
@@ -15622,7 +15657,7 @@ var commasStyle = css37`
|
|
|
15622
15657
|
}
|
|
15623
15658
|
}
|
|
15624
15659
|
`;
|
|
15625
|
-
var slashesStyle =
|
|
15660
|
+
var slashesStyle = css38`
|
|
15626
15661
|
${spacesStyle};
|
|
15627
15662
|
|
|
15628
15663
|
li {
|
|
@@ -15633,7 +15668,7 @@ var slashesStyle = css37`
|
|
|
15633
15668
|
}
|
|
15634
15669
|
}
|
|
15635
15670
|
`;
|
|
15636
|
-
var breadcrumbsStyle =
|
|
15671
|
+
var breadcrumbsStyle = css38`
|
|
15637
15672
|
${spacesStyle};
|
|
15638
15673
|
|
|
15639
15674
|
li {
|
|
@@ -15644,7 +15679,7 @@ var breadcrumbsStyle = css37`
|
|
|
15644
15679
|
}
|
|
15645
15680
|
}
|
|
15646
15681
|
`;
|
|
15647
|
-
var unbulletedStyle =
|
|
15682
|
+
var unbulletedStyle = css38`
|
|
15648
15683
|
list-style: none;
|
|
15649
15684
|
padding-left: 0;
|
|
15650
15685
|
`;
|
|
@@ -15826,7 +15861,7 @@ var ModalHeader = ({
|
|
|
15826
15861
|
|
|
15827
15862
|
// src/components/Modal/ModalContent.tsx
|
|
15828
15863
|
import { forwardRef as forwardRef25 } from "react";
|
|
15829
|
-
import { styled as styled78, css as
|
|
15864
|
+
import { styled as styled78, css as css39, keyframes as keyframes5 } from "styled-components";
|
|
15830
15865
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
15831
15866
|
|
|
15832
15867
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -15872,7 +15907,7 @@ var modalExit = keyframes5`
|
|
|
15872
15907
|
transform: translateX(-50%) translateY(calc(var(--wui-modal-translate-y) + 24px));
|
|
15873
15908
|
}
|
|
15874
15909
|
`;
|
|
15875
|
-
var centeredModalStyles =
|
|
15910
|
+
var centeredModalStyles = css39`
|
|
15876
15911
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
15877
15912
|
--wui-modal-translate-y: -50%;
|
|
15878
15913
|
|
|
@@ -15888,7 +15923,7 @@ var centeredModalStyles = css38`
|
|
|
15888
15923
|
animation: ${modalExit} var(--wui-motion-duration-03) var(--wui-motion-ease-out);
|
|
15889
15924
|
}
|
|
15890
15925
|
`;
|
|
15891
|
-
var fixedTopModalStyles =
|
|
15926
|
+
var fixedTopModalStyles = css39`
|
|
15892
15927
|
--wui-modal-screen-offset-top: 15vh;
|
|
15893
15928
|
--wui-modal-screen-offset-bottom: 5vh;
|
|
15894
15929
|
--wui-modal-translate-y: 0%;
|
|
@@ -15929,7 +15964,7 @@ var slideOutRight = keyframes5`
|
|
|
15929
15964
|
transform: translateX(100%);
|
|
15930
15965
|
}
|
|
15931
15966
|
`;
|
|
15932
|
-
var rightSidePanelModalStyles =
|
|
15967
|
+
var rightSidePanelModalStyles = css39`
|
|
15933
15968
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
15934
15969
|
|
|
15935
15970
|
height: calc(100vh - var(--wui-modal-screen-offset) * 2);
|
|
@@ -16127,7 +16162,7 @@ ModalCallout.displayName = "ModalCallout_UI";
|
|
|
16127
16162
|
|
|
16128
16163
|
// src/components/Popover/Popover.tsx
|
|
16129
16164
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
16130
|
-
import { styled as styled82, css as
|
|
16165
|
+
import { styled as styled82, css as css41 } from "styled-components";
|
|
16131
16166
|
|
|
16132
16167
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
16133
16168
|
import { isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
@@ -16137,7 +16172,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
16137
16172
|
|
|
16138
16173
|
// src/components/Popover/PopoverArrow.tsx
|
|
16139
16174
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
16140
|
-
import { styled as styled81, css as
|
|
16175
|
+
import { styled as styled81, css as css40, keyframes as keyframes7 } from "styled-components";
|
|
16141
16176
|
import { jsx as jsx307, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
16142
16177
|
var StyledPath = styled81.path`
|
|
16143
16178
|
fill: var(--wui-color-border-secondary);
|
|
@@ -16171,7 +16206,7 @@ var StyledCircle = styled81.circle`
|
|
|
16171
16206
|
}
|
|
16172
16207
|
|
|
16173
16208
|
@media (prefers-reduced-motion: no-preference) {
|
|
16174
|
-
${({ $isAnimated }) => $isAnimated &&
|
|
16209
|
+
${({ $isAnimated }) => $isAnimated && css40`
|
|
16175
16210
|
animation-name: ${circleAnimation};
|
|
16176
16211
|
`}
|
|
16177
16212
|
}
|
|
@@ -16220,7 +16255,7 @@ import { jsx as jsx308, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
|
16220
16255
|
var StyledContent2 = styled82(Content2)`
|
|
16221
16256
|
z-index: var(--wui-zindex-popover);
|
|
16222
16257
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
16223
|
-
${({ $unstyled }) => !$unstyled &&
|
|
16258
|
+
${({ $unstyled }) => !$unstyled && css41`
|
|
16224
16259
|
border-radius: var(--wui-border-radius-02);
|
|
16225
16260
|
padding: var(--wui-space-04);
|
|
16226
16261
|
max-width: var(--wui-popover-max-width, 320px);
|
|
@@ -16370,17 +16405,17 @@ ProgressBar.displayName = "ProgressBar_UI";
|
|
|
16370
16405
|
// src/components/Radio/Radio.tsx
|
|
16371
16406
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
|
|
16372
16407
|
import { forwardRef as forwardRef27, useId as useId5 } from "react";
|
|
16373
|
-
import { styled as styled84, css as
|
|
16408
|
+
import { styled as styled84, css as css42 } from "styled-components";
|
|
16374
16409
|
import { jsx as jsx310, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
16375
|
-
var sizeSmall2 =
|
|
16410
|
+
var sizeSmall2 = css42`
|
|
16376
16411
|
--wui-radio-size: 14px;
|
|
16377
16412
|
--wui-radio-icon-size: 7px;
|
|
16378
16413
|
`;
|
|
16379
|
-
var sizeMedium2 =
|
|
16414
|
+
var sizeMedium2 = css42`
|
|
16380
16415
|
--wui-radio-size: 16px;
|
|
16381
16416
|
--wui-radio-icon-size: 8px;
|
|
16382
16417
|
`;
|
|
16383
|
-
var sizeLarge2 =
|
|
16418
|
+
var sizeLarge2 = css42`
|
|
16384
16419
|
--wui-radio-size: 20px;
|
|
16385
16420
|
--wui-radio-icon-size: 10px;
|
|
16386
16421
|
`;
|
|
@@ -16521,17 +16556,17 @@ import { forwardRef as forwardRef29 } from "react";
|
|
|
16521
16556
|
|
|
16522
16557
|
// src/components/RadioCard/RadioCardRoot.tsx
|
|
16523
16558
|
import { forwardRef as forwardRef28, useId as useId6 } from "react";
|
|
16524
|
-
import { styled as styled85, css as
|
|
16559
|
+
import { styled as styled85, css as css43 } from "styled-components";
|
|
16525
16560
|
import { isNonEmptyString as isNonEmptyString8, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
16526
16561
|
import { jsx as jsx311, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
16527
|
-
var checkedStyles =
|
|
16562
|
+
var checkedStyles = css43`
|
|
16528
16563
|
--wui-radio-card-border-color: var(--wui-color-focus-ring);
|
|
16529
16564
|
--wui-color-icon: var(--wui-color-icon-selected);
|
|
16530
16565
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-info);
|
|
16531
16566
|
--wui-color-text: var(--wui-color-text-info);
|
|
16532
16567
|
--wui-color-text-secondary: var(--wui-color-text-info);
|
|
16533
16568
|
`;
|
|
16534
|
-
var disabledStyles =
|
|
16569
|
+
var disabledStyles = css43`
|
|
16535
16570
|
--wui-radio-card-border-color: var(--wui-color-border-disabled);
|
|
16536
16571
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-disabled);
|
|
16537
16572
|
--wui-radio-card-cursor: not-allowed;
|
|
@@ -16539,10 +16574,10 @@ var disabledStyles = css42`
|
|
|
16539
16574
|
--wui-color-text: var(--wui-color-text-disabled);
|
|
16540
16575
|
--wui-color-text-secondary: var(--wui-color-text-disabled);
|
|
16541
16576
|
`;
|
|
16542
|
-
var focusStyles =
|
|
16577
|
+
var focusStyles = css43`
|
|
16543
16578
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
16544
16579
|
`;
|
|
16545
|
-
var imageCoverStyles =
|
|
16580
|
+
var imageCoverStyles = css43`
|
|
16546
16581
|
--wui-radio-card-image-inset: 0px;
|
|
16547
16582
|
--wui-radio-card-border-width: 0px;
|
|
16548
16583
|
--wui-inset-shadow-width: 1px;
|
|
@@ -16948,7 +16983,7 @@ ScrollArea.displayName = "ScrollArea_UI";
|
|
|
16948
16983
|
|
|
16949
16984
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
16950
16985
|
import { forwardRef as forwardRef32 } from "react";
|
|
16951
|
-
import { styled as styled91, css as
|
|
16986
|
+
import { styled as styled91, css as css45 } from "styled-components";
|
|
16952
16987
|
import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
|
|
16953
16988
|
import { isNil as isNil18 } from "@wistia/type-guards";
|
|
16954
16989
|
|
|
@@ -16986,7 +17021,7 @@ var useSelectedItemStyle = () => {
|
|
|
16986
17021
|
};
|
|
16987
17022
|
|
|
16988
17023
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
16989
|
-
import { styled as styled90, css as
|
|
17024
|
+
import { styled as styled90, css as css44 } from "styled-components";
|
|
16990
17025
|
import { isUndefined as isUndefined5 } from "@wistia/type-guards";
|
|
16991
17026
|
|
|
16992
17027
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
@@ -17003,7 +17038,7 @@ var useSegmentedControlValue = () => {
|
|
|
17003
17038
|
|
|
17004
17039
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
17005
17040
|
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
17006
|
-
var selectedItemIndicatorStyles =
|
|
17041
|
+
var selectedItemIndicatorStyles = css44`
|
|
17007
17042
|
background-color: var(--wui-color-bg-fill-white);
|
|
17008
17043
|
border-radius: var(--wui-border-radius-rounded);
|
|
17009
17044
|
box-shadow: var(--wui-elevation-01);
|
|
@@ -17035,7 +17070,7 @@ var SelectedItemIndicator = () => {
|
|
|
17035
17070
|
|
|
17036
17071
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17037
17072
|
import { jsx as jsx318, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
17038
|
-
var segmentedControlStyles =
|
|
17073
|
+
var segmentedControlStyles = css45`
|
|
17039
17074
|
display: inline-flex;
|
|
17040
17075
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
17041
17076
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17085,11 +17120,11 @@ SegmentedControl.displayName = "SegmentedControl_UI";
|
|
|
17085
17120
|
|
|
17086
17121
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
17087
17122
|
import { forwardRef as forwardRef33, useEffect as useEffect21, useRef as useRef22 } from "react";
|
|
17088
|
-
import { styled as styled92, css as
|
|
17123
|
+
import { styled as styled92, css as css46 } from "styled-components";
|
|
17089
17124
|
import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
|
|
17090
17125
|
import { isNotNil as isNotNil36 } from "@wistia/type-guards";
|
|
17091
17126
|
import { jsxs as jsxs61 } from "react/jsx-runtime";
|
|
17092
|
-
var segmentedControlItemStyles =
|
|
17127
|
+
var segmentedControlItemStyles = css46`
|
|
17093
17128
|
all: unset; /* ToggleGroupItem is a button element */
|
|
17094
17129
|
align-items: center;
|
|
17095
17130
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17230,7 +17265,7 @@ import {
|
|
|
17230
17265
|
ScrollDownButton
|
|
17231
17266
|
} from "@radix-ui/react-select";
|
|
17232
17267
|
import { forwardRef as forwardRef34 } from "react";
|
|
17233
|
-
import { styled as styled93, css as
|
|
17268
|
+
import { styled as styled93, css as css47 } from "styled-components";
|
|
17234
17269
|
import { jsx as jsx319, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
17235
17270
|
var StyledTrigger2 = styled93(Trigger3)`
|
|
17236
17271
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -17301,7 +17336,7 @@ var StyledContent3 = styled93(Content3)`
|
|
|
17301
17336
|
margin: var(--wui-space-02) 0;
|
|
17302
17337
|
}
|
|
17303
17338
|
`;
|
|
17304
|
-
var scrollButtonStyles =
|
|
17339
|
+
var scrollButtonStyles = css47`
|
|
17305
17340
|
align-items: center;
|
|
17306
17341
|
display: flex;
|
|
17307
17342
|
justify-content: center;
|
|
@@ -17587,25 +17622,25 @@ var Slider = ({
|
|
|
17587
17622
|
Slider.displayName = "Slider_UI";
|
|
17588
17623
|
|
|
17589
17624
|
// src/components/Table/Table.tsx
|
|
17590
|
-
import { styled as styled97, css as
|
|
17625
|
+
import { styled as styled97, css as css48 } from "styled-components";
|
|
17591
17626
|
import { jsx as jsx323 } from "react/jsx-runtime";
|
|
17592
17627
|
var StyledTable = styled97.table`
|
|
17593
17628
|
width: 100%;
|
|
17594
17629
|
border-collapse: collapse;
|
|
17595
17630
|
|
|
17596
|
-
${({ $divided }) => $divided &&
|
|
17631
|
+
${({ $divided }) => $divided && css48`
|
|
17597
17632
|
tr {
|
|
17598
17633
|
border-bottom: 1px solid var(--wui-color-border);
|
|
17599
17634
|
}
|
|
17600
17635
|
`}
|
|
17601
17636
|
|
|
17602
|
-
${({ $striped }) => $striped &&
|
|
17637
|
+
${({ $striped }) => $striped && css48`
|
|
17603
17638
|
tbody tr:nth-child(even) {
|
|
17604
17639
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
17605
17640
|
}
|
|
17606
17641
|
`}
|
|
17607
17642
|
|
|
17608
|
-
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader &&
|
|
17643
|
+
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && css48`
|
|
17609
17644
|
thead {
|
|
17610
17645
|
${visuallyHiddenStyle}
|
|
17611
17646
|
}
|
|
@@ -17648,9 +17683,9 @@ var TableBody = ({ children, ...props }) => {
|
|
|
17648
17683
|
|
|
17649
17684
|
// src/components/Table/TableCell.tsx
|
|
17650
17685
|
import { useContext as useContext17 } from "react";
|
|
17651
|
-
import { styled as styled99, css as
|
|
17686
|
+
import { styled as styled99, css as css49 } from "styled-components";
|
|
17652
17687
|
import { jsx as jsx325 } from "react/jsx-runtime";
|
|
17653
|
-
var sharedStyles =
|
|
17688
|
+
var sharedStyles = css49`
|
|
17654
17689
|
color: var(--wui-color-text);
|
|
17655
17690
|
padding: var(--wui-space-02);
|
|
17656
17691
|
text-align: left;
|
|
@@ -17933,9 +17968,9 @@ import {
|
|
|
17933
17968
|
|
|
17934
17969
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
17935
17970
|
import { isNotNil as isNotNil41 } from "@wistia/type-guards";
|
|
17936
|
-
import { css as
|
|
17971
|
+
import { css as css50 } from "styled-components";
|
|
17937
17972
|
var gradients = {
|
|
17938
|
-
defaultDarkOne:
|
|
17973
|
+
defaultDarkOne: css50`
|
|
17939
17974
|
background-color: #222d66;
|
|
17940
17975
|
background-image:
|
|
17941
17976
|
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
@@ -17943,7 +17978,7 @@ var gradients = {
|
|
|
17943
17978
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
17944
17979
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
17945
17980
|
`,
|
|
17946
|
-
defaultDarkTwo:
|
|
17981
|
+
defaultDarkTwo: css50`
|
|
17947
17982
|
background-color: #222d66;
|
|
17948
17983
|
background-image:
|
|
17949
17984
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
@@ -17951,7 +17986,7 @@ var gradients = {
|
|
|
17951
17986
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
17952
17987
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
17953
17988
|
`,
|
|
17954
|
-
defaultLightOne:
|
|
17989
|
+
defaultLightOne: css50`
|
|
17955
17990
|
background-color: #ccd5ff;
|
|
17956
17991
|
background-image:
|
|
17957
17992
|
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
@@ -17959,13 +17994,13 @@ var gradients = {
|
|
|
17959
17994
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
17960
17995
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
17961
17996
|
`,
|
|
17962
|
-
defaultLightTwo:
|
|
17997
|
+
defaultLightTwo: css50`
|
|
17963
17998
|
background-color: #ccd5ff;
|
|
17964
17999
|
background-image:
|
|
17965
18000
|
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
17966
18001
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
17967
18002
|
`,
|
|
17968
|
-
defaultMidOne:
|
|
18003
|
+
defaultMidOne: css50`
|
|
17969
18004
|
background-color: #6b84ff;
|
|
17970
18005
|
background-image:
|
|
17971
18006
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
@@ -17973,13 +18008,13 @@ var gradients = {
|
|
|
17973
18008
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
17974
18009
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
17975
18010
|
`,
|
|
17976
|
-
defaultMidTwo:
|
|
18011
|
+
defaultMidTwo: css50`
|
|
17977
18012
|
background-color: #6b84ff;
|
|
17978
18013
|
background-image:
|
|
17979
18014
|
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
17980
18015
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
17981
18016
|
`,
|
|
17982
|
-
green:
|
|
18017
|
+
green: css50`
|
|
17983
18018
|
background-color: #fafffa;
|
|
17984
18019
|
background-image:
|
|
17985
18020
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -17987,7 +18022,7 @@ var gradients = {
|
|
|
17987
18022
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
17988
18023
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
17989
18024
|
`,
|
|
17990
|
-
greenWithPop:
|
|
18025
|
+
greenWithPop: css50`
|
|
17991
18026
|
background-color: #fafffa;
|
|
17992
18027
|
background-image:
|
|
17993
18028
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -17995,7 +18030,7 @@ var gradients = {
|
|
|
17995
18030
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
17996
18031
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
17997
18032
|
`,
|
|
17998
|
-
pink:
|
|
18033
|
+
pink: css50`
|
|
17999
18034
|
background-color: #fffff0;
|
|
18000
18035
|
background-image:
|
|
18001
18036
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
@@ -18003,7 +18038,7 @@ var gradients = {
|
|
|
18003
18038
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
18004
18039
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
18005
18040
|
`,
|
|
18006
|
-
pinkWithPop:
|
|
18041
|
+
pinkWithPop: css50`
|
|
18007
18042
|
background-color: #fffff0;
|
|
18008
18043
|
background-image:
|
|
18009
18044
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
@@ -18011,7 +18046,7 @@ var gradients = {
|
|
|
18011
18046
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
18012
18047
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
18013
18048
|
`,
|
|
18014
|
-
playfulGradientOne:
|
|
18049
|
+
playfulGradientOne: css50`
|
|
18015
18050
|
background-color: #f7f8ff;
|
|
18016
18051
|
background-image:
|
|
18017
18052
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
@@ -18019,7 +18054,7 @@ var gradients = {
|
|
|
18019
18054
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
18020
18055
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
18021
18056
|
`,
|
|
18022
|
-
playfulGradientTwo:
|
|
18057
|
+
playfulGradientTwo: css50`
|
|
18023
18058
|
background-color: #f7f8ff;
|
|
18024
18059
|
background-image:
|
|
18025
18060
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
@@ -18027,13 +18062,13 @@ var gradients = {
|
|
|
18027
18062
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
18028
18063
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
18029
18064
|
`,
|
|
18030
|
-
purple:
|
|
18065
|
+
purple: css50`
|
|
18031
18066
|
background-color: #f2caff;
|
|
18032
18067
|
background-image:
|
|
18033
18068
|
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
18034
18069
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
18035
18070
|
`,
|
|
18036
|
-
purpleWithPop:
|
|
18071
|
+
purpleWithPop: css50`
|
|
18037
18072
|
background-color: #f2caff;
|
|
18038
18073
|
background-image:
|
|
18039
18074
|
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
@@ -18041,7 +18076,7 @@ var gradients = {
|
|
|
18041
18076
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
18042
18077
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
18043
18078
|
`,
|
|
18044
|
-
yellow:
|
|
18079
|
+
yellow: css50`
|
|
18045
18080
|
background-color: #fffff0;
|
|
18046
18081
|
background-image:
|
|
18047
18082
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -18049,7 +18084,7 @@ var gradients = {
|
|
|
18049
18084
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
18050
18085
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
18051
18086
|
`,
|
|
18052
|
-
yellowWithPop:
|
|
18087
|
+
yellowWithPop: css50`
|
|
18053
18088
|
background-color: #fffff0;
|
|
18054
18089
|
background-image:
|
|
18055
18090
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -18510,7 +18545,7 @@ var ThumbnailCollage = ({
|
|
|
18510
18545
|
};
|
|
18511
18546
|
|
|
18512
18547
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
18513
|
-
import { styled as styled110, css as
|
|
18548
|
+
import { styled as styled110, css as css51 } from "styled-components";
|
|
18514
18549
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
18515
18550
|
import { jsx as jsx337, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
18516
18551
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -18568,12 +18603,12 @@ var WistiaLogoComponent = styled110.svg`
|
|
|
18568
18603
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
18569
18604
|
if ($opticallyCentered) {
|
|
18570
18605
|
if ($iconOnly) {
|
|
18571
|
-
return
|
|
18606
|
+
return css51`
|
|
18572
18607
|
aspect-ratio: 1;
|
|
18573
18608
|
padding: 11.85% 3.12% 13.91%;
|
|
18574
18609
|
`;
|
|
18575
18610
|
}
|
|
18576
|
-
return
|
|
18611
|
+
return css51`
|
|
18577
18612
|
aspect-ratio: 127 / 32;
|
|
18578
18613
|
`;
|
|
18579
18614
|
}
|