@wistia/ui 0.18.18-beta.718b4f5b.dc3bc8e → 0.18.18-beta.ab8816f1.f832860
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 +63 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -8
- package/dist/index.d.ts +4 -8
- package/dist/index.mjs +126 -102
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.18-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.18-beta.ab8816f1.f832860
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -14100,7 +14100,7 @@ var DataCardInner = ({
|
|
|
14100
14100
|
StyledLabel3,
|
|
14101
14101
|
{
|
|
14102
14102
|
"data-wui-data-card-skeleton": isLoading,
|
|
14103
|
-
renderAs: "
|
|
14103
|
+
renderAs: "dt",
|
|
14104
14104
|
variant: "heading6",
|
|
14105
14105
|
children: label
|
|
14106
14106
|
}
|
|
@@ -14109,7 +14109,7 @@ var DataCardInner = ({
|
|
|
14109
14109
|
StyledValue,
|
|
14110
14110
|
{
|
|
14111
14111
|
"data-wui-data-card-skeleton": isLoading,
|
|
14112
|
-
renderAs: "
|
|
14112
|
+
renderAs: "dd",
|
|
14113
14113
|
variant: "heading3",
|
|
14114
14114
|
children: value
|
|
14115
14115
|
}
|
|
@@ -14162,16 +14162,9 @@ import { styled as styled59 } from "styled-components";
|
|
|
14162
14162
|
import { jsx as jsx279 } from "react/jsx-runtime";
|
|
14163
14163
|
var StyledDataCards = styled59(Box)`
|
|
14164
14164
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
14165
|
-
--wui-data-cards-column-count: ${({ $columns }) => $columns === "auto" ? void 0 : $columns};
|
|
14166
|
-
--wui-data-cards-total-column-gap-width: calc(var(--wui-data-cards-column-count) - 1) *
|
|
14167
|
-
var(--wui-space-02);
|
|
14168
|
-
--wui-data-cards-column-width: calc(
|
|
14169
|
-
(100% - var(--wui-data-cards-total-column-gap-width)) / var(--wui-data-cards-column-count)
|
|
14170
|
-
);
|
|
14171
14165
|
|
|
14172
14166
|
> * {
|
|
14173
14167
|
min-width: 120px;
|
|
14174
|
-
flex-basis: var(--wui-data-cards-column-width, 0);
|
|
14175
14168
|
max-width: ${({ $cardMaxWidth }) => $cardMaxWidth};
|
|
14176
14169
|
}
|
|
14177
14170
|
`;
|
|
@@ -14179,22 +14172,19 @@ var DataCards = ({
|
|
|
14179
14172
|
children,
|
|
14180
14173
|
cardMaxWidth = "none",
|
|
14181
14174
|
colorScheme = "inherit",
|
|
14182
|
-
columns = "auto",
|
|
14183
14175
|
...props
|
|
14184
14176
|
}) => {
|
|
14185
|
-
const responsiveCardMaxWidth = useResponsiveProp(cardMaxWidth);
|
|
14186
|
-
const responsiveColumns = useResponsiveProp(columns);
|
|
14187
14177
|
return /* @__PURE__ */ jsx279(
|
|
14188
14178
|
StyledDataCards,
|
|
14189
14179
|
{
|
|
14190
14180
|
...props,
|
|
14191
|
-
$cardMaxWidth:
|
|
14181
|
+
$cardMaxWidth: cardMaxWidth,
|
|
14192
14182
|
$colorScheme: colorScheme,
|
|
14193
|
-
$columns: responsiveColumns,
|
|
14194
14183
|
alignItems: "stretch",
|
|
14195
14184
|
direction: "row",
|
|
14196
14185
|
fill: "horizontal",
|
|
14197
14186
|
gap: "space-02",
|
|
14187
|
+
renderAs: "dl",
|
|
14198
14188
|
wrapItems: true,
|
|
14199
14189
|
children
|
|
14200
14190
|
}
|
|
@@ -15085,11 +15075,23 @@ var FormErrorSummary = ({ description }) => {
|
|
|
15085
15075
|
|
|
15086
15076
|
// src/components/FormField/FormField.tsx
|
|
15087
15077
|
import { Children as Children10, cloneElement as cloneElement8, useContext as useContext13 } from "react";
|
|
15088
|
-
import { styled as styled68 } from "styled-components";
|
|
15078
|
+
import { styled as styled68, css as css36 } from "styled-components";
|
|
15089
15079
|
import { isArray as isArray4, isNotNil as isNotNil28, isNotUndefined as isNotUndefined12, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
15090
|
-
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
|
+
`;
|
|
15091
15093
|
var StyledFormField = styled68.div`
|
|
15092
|
-
--form-field-spacing: var(--wui-space-
|
|
15094
|
+
--form-field-spacing: var(--wui-space-02);
|
|
15093
15095
|
--form-field-spacing-inline: var(--wui-space-02);
|
|
15094
15096
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
15095
15097
|
|
|
@@ -15103,21 +15105,28 @@ var StyledFormField = styled68.div`
|
|
|
15103
15105
|
&[data-label-position='inline-compact'] {
|
|
15104
15106
|
gap: var(--form-field-spacing-inline);
|
|
15105
15107
|
grid-template-columns: auto 1fr;
|
|
15106
|
-
|
|
15108
|
+
${inlineBaseGridAreaStyles}
|
|
15109
|
+
${({ $hasError }) => $hasError && inlineErrorStyles}
|
|
15107
15110
|
}
|
|
15108
15111
|
|
|
15109
15112
|
&[data-label-position='inline'] {
|
|
15110
15113
|
gap: var(--form-field-spacing-inline);
|
|
15111
15114
|
grid-template-columns: minmax(auto, 1fr) 1fr;
|
|
15112
|
-
|
|
15115
|
+
${inlineBaseGridAreaStyles}
|
|
15116
|
+
${({ $hasError }) => $hasError && inlineErrorStyles}
|
|
15113
15117
|
}
|
|
15114
15118
|
|
|
15115
15119
|
&[data-label-position='block'] {
|
|
15116
15120
|
gap: var(--form-field-spacing);
|
|
15117
15121
|
grid-template-columns: 1fr;
|
|
15118
|
-
grid-template-rows: 1fr;
|
|
15122
|
+
grid-template-rows: auto 1fr;
|
|
15123
|
+
grid-template-areas: 'label-description' 'input';
|
|
15124
|
+
${({ $hasError }) => $hasError && blockGridErrorStyles}
|
|
15119
15125
|
}
|
|
15120
15126
|
`;
|
|
15127
|
+
var ErrorText = styled68(Text)`
|
|
15128
|
+
grid-area: error;
|
|
15129
|
+
`;
|
|
15121
15130
|
var StyledErrorList = styled68.ul`
|
|
15122
15131
|
margin: 0;
|
|
15123
15132
|
padding: 0;
|
|
@@ -15125,13 +15134,14 @@ var StyledErrorList = styled68.ul`
|
|
|
15125
15134
|
display: flex;
|
|
15126
15135
|
flex-direction: column;
|
|
15127
15136
|
gap: var(--wui-space-01);
|
|
15137
|
+
grid-area: error;
|
|
15128
15138
|
`;
|
|
15129
15139
|
var ErrorMessages = ({ errors, id }) => {
|
|
15130
15140
|
const isErrorArray = isArray4(errors);
|
|
15131
15141
|
const isMultipleErrors = isErrorArray && errors.length > 1;
|
|
15132
15142
|
if (!isErrorArray) {
|
|
15133
15143
|
return /* @__PURE__ */ jsx293(
|
|
15134
|
-
|
|
15144
|
+
ErrorText,
|
|
15135
15145
|
{
|
|
15136
15146
|
colorScheme: "error",
|
|
15137
15147
|
id,
|
|
@@ -15144,7 +15154,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
15144
15154
|
}
|
|
15145
15155
|
if (!isMultipleErrors) {
|
|
15146
15156
|
return /* @__PURE__ */ jsx293(
|
|
15147
|
-
|
|
15157
|
+
ErrorText,
|
|
15148
15158
|
{
|
|
15149
15159
|
colorScheme: "error",
|
|
15150
15160
|
id,
|
|
@@ -15189,12 +15199,16 @@ var FormField = ({
|
|
|
15189
15199
|
const descriptionId = `${computedId}-description`;
|
|
15190
15200
|
const errorId = `${computedId}-error`;
|
|
15191
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;
|
|
15192
15205
|
let childProps = {
|
|
15193
15206
|
name,
|
|
15194
15207
|
id: computedId,
|
|
15195
15208
|
label: isIntegratedLabel ? label : void 0,
|
|
15196
15209
|
"aria-describedby": ariaDescribedby,
|
|
15197
|
-
"aria-invalid":
|
|
15210
|
+
"aria-invalid": hasError,
|
|
15211
|
+
style: { gridArea: "input" },
|
|
15198
15212
|
...props
|
|
15199
15213
|
};
|
|
15200
15214
|
if (isUndefined4(value) && isNotUndefined12(defaultValue)) {
|
|
@@ -15224,28 +15238,38 @@ var FormField = ({
|
|
|
15224
15238
|
StyledFormField,
|
|
15225
15239
|
{
|
|
15226
15240
|
...props,
|
|
15241
|
+
$hasError: hasError,
|
|
15227
15242
|
"data-label-position": labelPosition ?? formState.labelPosition,
|
|
15228
15243
|
children: [
|
|
15229
|
-
|
|
15230
|
-
|
|
15244
|
+
shouldRenderLabelDescriptionWrapper ? /* @__PURE__ */ jsxs47(
|
|
15245
|
+
Stack,
|
|
15231
15246
|
{
|
|
15232
|
-
|
|
15233
|
-
|
|
15234
|
-
|
|
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
|
+
]
|
|
15235
15263
|
}
|
|
15236
|
-
),
|
|
15237
|
-
isNotNil28(description) ? /* @__PURE__ */ jsx293(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
|
|
15264
|
+
) : null,
|
|
15238
15265
|
cloneElement8(children, childProps),
|
|
15239
|
-
|
|
15240
|
-
|
|
15241
|
-
|
|
15242
|
-
|
|
15243
|
-
|
|
15244
|
-
|
|
15245
|
-
|
|
15246
|
-
}
|
|
15247
|
-
)
|
|
15248
|
-
] }) : null
|
|
15266
|
+
hasError ? /* @__PURE__ */ jsx293(
|
|
15267
|
+
ErrorMessages,
|
|
15268
|
+
{
|
|
15269
|
+
errors: computedError,
|
|
15270
|
+
id: errorId
|
|
15271
|
+
}
|
|
15272
|
+
) : null
|
|
15249
15273
|
]
|
|
15250
15274
|
}
|
|
15251
15275
|
);
|
|
@@ -15281,24 +15305,24 @@ RadioGroup.displayName = "RadioGroup_UI";
|
|
|
15281
15305
|
|
|
15282
15306
|
// src/components/Grid/Grid.tsx
|
|
15283
15307
|
import { forwardRef as forwardRef22 } from "react";
|
|
15284
|
-
import { styled as styled69, css as
|
|
15308
|
+
import { styled as styled69, css as css37 } from "styled-components";
|
|
15285
15309
|
import { isRecord as isRecord5 } from "@wistia/type-guards";
|
|
15286
15310
|
import { jsx as jsx295 } from "react/jsx-runtime";
|
|
15287
15311
|
var DEFAULT_ELEMENT5 = "div";
|
|
15288
15312
|
var getGridTemplateColumns = (maxColumns, minChildWidth, expandItems) => {
|
|
15289
15313
|
if (minChildWidth === "auto" && maxColumns === "auto") {
|
|
15290
|
-
return
|
|
15314
|
+
return css37`
|
|
15291
15315
|
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
15292
15316
|
`;
|
|
15293
15317
|
}
|
|
15294
15318
|
const gridMode = expandItems ? "auto-fit" : "auto-fill";
|
|
15295
15319
|
const minChildWidthValue = minChildWidth === "auto" ? 0 : minChildWidth;
|
|
15296
15320
|
if (maxColumns === "auto") {
|
|
15297
|
-
return
|
|
15321
|
+
return css37`
|
|
15298
15322
|
grid-template-columns: repeat(${gridMode}, minmax(${minChildWidthValue}px, 1fr));
|
|
15299
15323
|
`;
|
|
15300
15324
|
}
|
|
15301
|
-
return
|
|
15325
|
+
return css37`
|
|
15302
15326
|
/* Adapted from https://9elements.com/blog/building-a-rock-solid-auto-grid/ */
|
|
15303
15327
|
--wui-grid-total-column-gap-width: calc(${maxColumns - 1} * var(--wui-grid-column-gap));
|
|
15304
15328
|
--wui-grid-max-column-width: calc(
|
|
@@ -15582,7 +15606,7 @@ KeyboardShortcut.displayName = "KeyboardShortcut_UI";
|
|
|
15582
15606
|
|
|
15583
15607
|
// src/components/List/List.tsx
|
|
15584
15608
|
import { isNotNil as isNotNil30 } from "@wistia/type-guards";
|
|
15585
|
-
import { styled as styled74, css as
|
|
15609
|
+
import { styled as styled74, css as css38 } from "styled-components";
|
|
15586
15610
|
|
|
15587
15611
|
// src/components/List/ListItem.tsx
|
|
15588
15612
|
import { styled as styled73 } from "styled-components";
|
|
@@ -15601,7 +15625,7 @@ ListItem.displayName = "ListItem_UI";
|
|
|
15601
15625
|
|
|
15602
15626
|
// src/components/List/List.tsx
|
|
15603
15627
|
import { jsx as jsx300, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
15604
|
-
var spacesStyle =
|
|
15628
|
+
var spacesStyle = css38`
|
|
15605
15629
|
overflow: hidden;
|
|
15606
15630
|
padding-left: 0;
|
|
15607
15631
|
vertical-align: bottom;
|
|
@@ -15623,7 +15647,7 @@ var spacesStyle = css37`
|
|
|
15623
15647
|
}
|
|
15624
15648
|
}
|
|
15625
15649
|
`;
|
|
15626
|
-
var commasStyle =
|
|
15650
|
+
var commasStyle = css38`
|
|
15627
15651
|
${spacesStyle};
|
|
15628
15652
|
|
|
15629
15653
|
li {
|
|
@@ -15633,7 +15657,7 @@ var commasStyle = css37`
|
|
|
15633
15657
|
}
|
|
15634
15658
|
}
|
|
15635
15659
|
`;
|
|
15636
|
-
var slashesStyle =
|
|
15660
|
+
var slashesStyle = css38`
|
|
15637
15661
|
${spacesStyle};
|
|
15638
15662
|
|
|
15639
15663
|
li {
|
|
@@ -15644,7 +15668,7 @@ var slashesStyle = css37`
|
|
|
15644
15668
|
}
|
|
15645
15669
|
}
|
|
15646
15670
|
`;
|
|
15647
|
-
var breadcrumbsStyle =
|
|
15671
|
+
var breadcrumbsStyle = css38`
|
|
15648
15672
|
${spacesStyle};
|
|
15649
15673
|
|
|
15650
15674
|
li {
|
|
@@ -15655,7 +15679,7 @@ var breadcrumbsStyle = css37`
|
|
|
15655
15679
|
}
|
|
15656
15680
|
}
|
|
15657
15681
|
`;
|
|
15658
|
-
var unbulletedStyle =
|
|
15682
|
+
var unbulletedStyle = css38`
|
|
15659
15683
|
list-style: none;
|
|
15660
15684
|
padding-left: 0;
|
|
15661
15685
|
`;
|
|
@@ -15837,7 +15861,7 @@ var ModalHeader = ({
|
|
|
15837
15861
|
|
|
15838
15862
|
// src/components/Modal/ModalContent.tsx
|
|
15839
15863
|
import { forwardRef as forwardRef25 } from "react";
|
|
15840
|
-
import { styled as styled78, css as
|
|
15864
|
+
import { styled as styled78, css as css39, keyframes as keyframes5 } from "styled-components";
|
|
15841
15865
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
15842
15866
|
|
|
15843
15867
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -15883,7 +15907,7 @@ var modalExit = keyframes5`
|
|
|
15883
15907
|
transform: translateX(-50%) translateY(calc(var(--wui-modal-translate-y) + 24px));
|
|
15884
15908
|
}
|
|
15885
15909
|
`;
|
|
15886
|
-
var centeredModalStyles =
|
|
15910
|
+
var centeredModalStyles = css39`
|
|
15887
15911
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
15888
15912
|
--wui-modal-translate-y: -50%;
|
|
15889
15913
|
|
|
@@ -15899,7 +15923,7 @@ var centeredModalStyles = css38`
|
|
|
15899
15923
|
animation: ${modalExit} var(--wui-motion-duration-03) var(--wui-motion-ease-out);
|
|
15900
15924
|
}
|
|
15901
15925
|
`;
|
|
15902
|
-
var fixedTopModalStyles =
|
|
15926
|
+
var fixedTopModalStyles = css39`
|
|
15903
15927
|
--wui-modal-screen-offset-top: 15vh;
|
|
15904
15928
|
--wui-modal-screen-offset-bottom: 5vh;
|
|
15905
15929
|
--wui-modal-translate-y: 0%;
|
|
@@ -15940,7 +15964,7 @@ var slideOutRight = keyframes5`
|
|
|
15940
15964
|
transform: translateX(100%);
|
|
15941
15965
|
}
|
|
15942
15966
|
`;
|
|
15943
|
-
var rightSidePanelModalStyles =
|
|
15967
|
+
var rightSidePanelModalStyles = css39`
|
|
15944
15968
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
15945
15969
|
|
|
15946
15970
|
height: calc(100vh - var(--wui-modal-screen-offset) * 2);
|
|
@@ -16138,7 +16162,7 @@ ModalCallout.displayName = "ModalCallout_UI";
|
|
|
16138
16162
|
|
|
16139
16163
|
// src/components/Popover/Popover.tsx
|
|
16140
16164
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
16141
|
-
import { styled as styled82, css as
|
|
16165
|
+
import { styled as styled82, css as css41 } from "styled-components";
|
|
16142
16166
|
|
|
16143
16167
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
16144
16168
|
import { isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
@@ -16148,7 +16172,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
16148
16172
|
|
|
16149
16173
|
// src/components/Popover/PopoverArrow.tsx
|
|
16150
16174
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
16151
|
-
import { styled as styled81, css as
|
|
16175
|
+
import { styled as styled81, css as css40, keyframes as keyframes7 } from "styled-components";
|
|
16152
16176
|
import { jsx as jsx307, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
16153
16177
|
var StyledPath = styled81.path`
|
|
16154
16178
|
fill: var(--wui-color-border-secondary);
|
|
@@ -16182,7 +16206,7 @@ var StyledCircle = styled81.circle`
|
|
|
16182
16206
|
}
|
|
16183
16207
|
|
|
16184
16208
|
@media (prefers-reduced-motion: no-preference) {
|
|
16185
|
-
${({ $isAnimated }) => $isAnimated &&
|
|
16209
|
+
${({ $isAnimated }) => $isAnimated && css40`
|
|
16186
16210
|
animation-name: ${circleAnimation};
|
|
16187
16211
|
`}
|
|
16188
16212
|
}
|
|
@@ -16231,7 +16255,7 @@ import { jsx as jsx308, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
|
16231
16255
|
var StyledContent2 = styled82(Content2)`
|
|
16232
16256
|
z-index: var(--wui-zindex-popover);
|
|
16233
16257
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
16234
|
-
${({ $unstyled }) => !$unstyled &&
|
|
16258
|
+
${({ $unstyled }) => !$unstyled && css41`
|
|
16235
16259
|
border-radius: var(--wui-border-radius-02);
|
|
16236
16260
|
padding: var(--wui-space-04);
|
|
16237
16261
|
max-width: var(--wui-popover-max-width, 320px);
|
|
@@ -16381,17 +16405,17 @@ ProgressBar.displayName = "ProgressBar_UI";
|
|
|
16381
16405
|
// src/components/Radio/Radio.tsx
|
|
16382
16406
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
|
|
16383
16407
|
import { forwardRef as forwardRef27, useId as useId5 } from "react";
|
|
16384
|
-
import { styled as styled84, css as
|
|
16408
|
+
import { styled as styled84, css as css42 } from "styled-components";
|
|
16385
16409
|
import { jsx as jsx310, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
16386
|
-
var sizeSmall2 =
|
|
16410
|
+
var sizeSmall2 = css42`
|
|
16387
16411
|
--wui-radio-size: 14px;
|
|
16388
16412
|
--wui-radio-icon-size: 7px;
|
|
16389
16413
|
`;
|
|
16390
|
-
var sizeMedium2 =
|
|
16414
|
+
var sizeMedium2 = css42`
|
|
16391
16415
|
--wui-radio-size: 16px;
|
|
16392
16416
|
--wui-radio-icon-size: 8px;
|
|
16393
16417
|
`;
|
|
16394
|
-
var sizeLarge2 =
|
|
16418
|
+
var sizeLarge2 = css42`
|
|
16395
16419
|
--wui-radio-size: 20px;
|
|
16396
16420
|
--wui-radio-icon-size: 10px;
|
|
16397
16421
|
`;
|
|
@@ -16532,17 +16556,17 @@ import { forwardRef as forwardRef29 } from "react";
|
|
|
16532
16556
|
|
|
16533
16557
|
// src/components/RadioCard/RadioCardRoot.tsx
|
|
16534
16558
|
import { forwardRef as forwardRef28, useId as useId6 } from "react";
|
|
16535
|
-
import { styled as styled85, css as
|
|
16559
|
+
import { styled as styled85, css as css43 } from "styled-components";
|
|
16536
16560
|
import { isNonEmptyString as isNonEmptyString8, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
16537
16561
|
import { jsx as jsx311, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
16538
|
-
var checkedStyles =
|
|
16562
|
+
var checkedStyles = css43`
|
|
16539
16563
|
--wui-radio-card-border-color: var(--wui-color-focus-ring);
|
|
16540
16564
|
--wui-color-icon: var(--wui-color-icon-selected);
|
|
16541
16565
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-info);
|
|
16542
16566
|
--wui-color-text: var(--wui-color-text-info);
|
|
16543
16567
|
--wui-color-text-secondary: var(--wui-color-text-info);
|
|
16544
16568
|
`;
|
|
16545
|
-
var disabledStyles =
|
|
16569
|
+
var disabledStyles = css43`
|
|
16546
16570
|
--wui-radio-card-border-color: var(--wui-color-border-disabled);
|
|
16547
16571
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-disabled);
|
|
16548
16572
|
--wui-radio-card-cursor: not-allowed;
|
|
@@ -16550,10 +16574,10 @@ var disabledStyles = css42`
|
|
|
16550
16574
|
--wui-color-text: var(--wui-color-text-disabled);
|
|
16551
16575
|
--wui-color-text-secondary: var(--wui-color-text-disabled);
|
|
16552
16576
|
`;
|
|
16553
|
-
var focusStyles =
|
|
16577
|
+
var focusStyles = css43`
|
|
16554
16578
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
16555
16579
|
`;
|
|
16556
|
-
var imageCoverStyles =
|
|
16580
|
+
var imageCoverStyles = css43`
|
|
16557
16581
|
--wui-radio-card-image-inset: 0px;
|
|
16558
16582
|
--wui-radio-card-border-width: 0px;
|
|
16559
16583
|
--wui-inset-shadow-width: 1px;
|
|
@@ -16959,7 +16983,7 @@ ScrollArea.displayName = "ScrollArea_UI";
|
|
|
16959
16983
|
|
|
16960
16984
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
16961
16985
|
import { forwardRef as forwardRef32 } from "react";
|
|
16962
|
-
import { styled as styled91, css as
|
|
16986
|
+
import { styled as styled91, css as css45 } from "styled-components";
|
|
16963
16987
|
import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
|
|
16964
16988
|
import { isNil as isNil18 } from "@wistia/type-guards";
|
|
16965
16989
|
|
|
@@ -16997,7 +17021,7 @@ var useSelectedItemStyle = () => {
|
|
|
16997
17021
|
};
|
|
16998
17022
|
|
|
16999
17023
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
17000
|
-
import { styled as styled90, css as
|
|
17024
|
+
import { styled as styled90, css as css44 } from "styled-components";
|
|
17001
17025
|
import { isUndefined as isUndefined5 } from "@wistia/type-guards";
|
|
17002
17026
|
|
|
17003
17027
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
@@ -17014,7 +17038,7 @@ var useSegmentedControlValue = () => {
|
|
|
17014
17038
|
|
|
17015
17039
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
17016
17040
|
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
17017
|
-
var selectedItemIndicatorStyles =
|
|
17041
|
+
var selectedItemIndicatorStyles = css44`
|
|
17018
17042
|
background-color: var(--wui-color-bg-fill-white);
|
|
17019
17043
|
border-radius: var(--wui-border-radius-rounded);
|
|
17020
17044
|
box-shadow: var(--wui-elevation-01);
|
|
@@ -17046,7 +17070,7 @@ var SelectedItemIndicator = () => {
|
|
|
17046
17070
|
|
|
17047
17071
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17048
17072
|
import { jsx as jsx318, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
17049
|
-
var segmentedControlStyles =
|
|
17073
|
+
var segmentedControlStyles = css45`
|
|
17050
17074
|
display: inline-flex;
|
|
17051
17075
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
17052
17076
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17096,11 +17120,11 @@ SegmentedControl.displayName = "SegmentedControl_UI";
|
|
|
17096
17120
|
|
|
17097
17121
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
17098
17122
|
import { forwardRef as forwardRef33, useEffect as useEffect21, useRef as useRef22 } from "react";
|
|
17099
|
-
import { styled as styled92, css as
|
|
17123
|
+
import { styled as styled92, css as css46 } from "styled-components";
|
|
17100
17124
|
import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
|
|
17101
17125
|
import { isNotNil as isNotNil36 } from "@wistia/type-guards";
|
|
17102
17126
|
import { jsxs as jsxs61 } from "react/jsx-runtime";
|
|
17103
|
-
var segmentedControlItemStyles =
|
|
17127
|
+
var segmentedControlItemStyles = css46`
|
|
17104
17128
|
all: unset; /* ToggleGroupItem is a button element */
|
|
17105
17129
|
align-items: center;
|
|
17106
17130
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17241,7 +17265,7 @@ import {
|
|
|
17241
17265
|
ScrollDownButton
|
|
17242
17266
|
} from "@radix-ui/react-select";
|
|
17243
17267
|
import { forwardRef as forwardRef34 } from "react";
|
|
17244
|
-
import { styled as styled93, css as
|
|
17268
|
+
import { styled as styled93, css as css47 } from "styled-components";
|
|
17245
17269
|
import { jsx as jsx319, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
17246
17270
|
var StyledTrigger2 = styled93(Trigger3)`
|
|
17247
17271
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -17312,7 +17336,7 @@ var StyledContent3 = styled93(Content3)`
|
|
|
17312
17336
|
margin: var(--wui-space-02) 0;
|
|
17313
17337
|
}
|
|
17314
17338
|
`;
|
|
17315
|
-
var scrollButtonStyles =
|
|
17339
|
+
var scrollButtonStyles = css47`
|
|
17316
17340
|
align-items: center;
|
|
17317
17341
|
display: flex;
|
|
17318
17342
|
justify-content: center;
|
|
@@ -17598,25 +17622,25 @@ var Slider = ({
|
|
|
17598
17622
|
Slider.displayName = "Slider_UI";
|
|
17599
17623
|
|
|
17600
17624
|
// src/components/Table/Table.tsx
|
|
17601
|
-
import { styled as styled97, css as
|
|
17625
|
+
import { styled as styled97, css as css48 } from "styled-components";
|
|
17602
17626
|
import { jsx as jsx323 } from "react/jsx-runtime";
|
|
17603
17627
|
var StyledTable = styled97.table`
|
|
17604
17628
|
width: 100%;
|
|
17605
17629
|
border-collapse: collapse;
|
|
17606
17630
|
|
|
17607
|
-
${({ $divided }) => $divided &&
|
|
17631
|
+
${({ $divided }) => $divided && css48`
|
|
17608
17632
|
tr {
|
|
17609
17633
|
border-bottom: 1px solid var(--wui-color-border);
|
|
17610
17634
|
}
|
|
17611
17635
|
`}
|
|
17612
17636
|
|
|
17613
|
-
${({ $striped }) => $striped &&
|
|
17637
|
+
${({ $striped }) => $striped && css48`
|
|
17614
17638
|
tbody tr:nth-child(even) {
|
|
17615
17639
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
17616
17640
|
}
|
|
17617
17641
|
`}
|
|
17618
17642
|
|
|
17619
|
-
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader &&
|
|
17643
|
+
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && css48`
|
|
17620
17644
|
thead {
|
|
17621
17645
|
${visuallyHiddenStyle}
|
|
17622
17646
|
}
|
|
@@ -17659,9 +17683,9 @@ var TableBody = ({ children, ...props }) => {
|
|
|
17659
17683
|
|
|
17660
17684
|
// src/components/Table/TableCell.tsx
|
|
17661
17685
|
import { useContext as useContext17 } from "react";
|
|
17662
|
-
import { styled as styled99, css as
|
|
17686
|
+
import { styled as styled99, css as css49 } from "styled-components";
|
|
17663
17687
|
import { jsx as jsx325 } from "react/jsx-runtime";
|
|
17664
|
-
var sharedStyles =
|
|
17688
|
+
var sharedStyles = css49`
|
|
17665
17689
|
color: var(--wui-color-text);
|
|
17666
17690
|
padding: var(--wui-space-02);
|
|
17667
17691
|
text-align: left;
|
|
@@ -17944,9 +17968,9 @@ import {
|
|
|
17944
17968
|
|
|
17945
17969
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
17946
17970
|
import { isNotNil as isNotNil41 } from "@wistia/type-guards";
|
|
17947
|
-
import { css as
|
|
17971
|
+
import { css as css50 } from "styled-components";
|
|
17948
17972
|
var gradients = {
|
|
17949
|
-
defaultDarkOne:
|
|
17973
|
+
defaultDarkOne: css50`
|
|
17950
17974
|
background-color: #222d66;
|
|
17951
17975
|
background-image:
|
|
17952
17976
|
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
@@ -17954,7 +17978,7 @@ var gradients = {
|
|
|
17954
17978
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
17955
17979
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
17956
17980
|
`,
|
|
17957
|
-
defaultDarkTwo:
|
|
17981
|
+
defaultDarkTwo: css50`
|
|
17958
17982
|
background-color: #222d66;
|
|
17959
17983
|
background-image:
|
|
17960
17984
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
@@ -17962,7 +17986,7 @@ var gradients = {
|
|
|
17962
17986
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
17963
17987
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
17964
17988
|
`,
|
|
17965
|
-
defaultLightOne:
|
|
17989
|
+
defaultLightOne: css50`
|
|
17966
17990
|
background-color: #ccd5ff;
|
|
17967
17991
|
background-image:
|
|
17968
17992
|
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
@@ -17970,13 +17994,13 @@ var gradients = {
|
|
|
17970
17994
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
17971
17995
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
17972
17996
|
`,
|
|
17973
|
-
defaultLightTwo:
|
|
17997
|
+
defaultLightTwo: css50`
|
|
17974
17998
|
background-color: #ccd5ff;
|
|
17975
17999
|
background-image:
|
|
17976
18000
|
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
17977
18001
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
17978
18002
|
`,
|
|
17979
|
-
defaultMidOne:
|
|
18003
|
+
defaultMidOne: css50`
|
|
17980
18004
|
background-color: #6b84ff;
|
|
17981
18005
|
background-image:
|
|
17982
18006
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
@@ -17984,13 +18008,13 @@ var gradients = {
|
|
|
17984
18008
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
17985
18009
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
17986
18010
|
`,
|
|
17987
|
-
defaultMidTwo:
|
|
18011
|
+
defaultMidTwo: css50`
|
|
17988
18012
|
background-color: #6b84ff;
|
|
17989
18013
|
background-image:
|
|
17990
18014
|
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
17991
18015
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
17992
18016
|
`,
|
|
17993
|
-
green:
|
|
18017
|
+
green: css50`
|
|
17994
18018
|
background-color: #fafffa;
|
|
17995
18019
|
background-image:
|
|
17996
18020
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -17998,7 +18022,7 @@ var gradients = {
|
|
|
17998
18022
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
17999
18023
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
18000
18024
|
`,
|
|
18001
|
-
greenWithPop:
|
|
18025
|
+
greenWithPop: css50`
|
|
18002
18026
|
background-color: #fafffa;
|
|
18003
18027
|
background-image:
|
|
18004
18028
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -18006,7 +18030,7 @@ var gradients = {
|
|
|
18006
18030
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
18007
18031
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
18008
18032
|
`,
|
|
18009
|
-
pink:
|
|
18033
|
+
pink: css50`
|
|
18010
18034
|
background-color: #fffff0;
|
|
18011
18035
|
background-image:
|
|
18012
18036
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
@@ -18014,7 +18038,7 @@ var gradients = {
|
|
|
18014
18038
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
18015
18039
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
18016
18040
|
`,
|
|
18017
|
-
pinkWithPop:
|
|
18041
|
+
pinkWithPop: css50`
|
|
18018
18042
|
background-color: #fffff0;
|
|
18019
18043
|
background-image:
|
|
18020
18044
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
@@ -18022,7 +18046,7 @@ var gradients = {
|
|
|
18022
18046
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
18023
18047
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
18024
18048
|
`,
|
|
18025
|
-
playfulGradientOne:
|
|
18049
|
+
playfulGradientOne: css50`
|
|
18026
18050
|
background-color: #f7f8ff;
|
|
18027
18051
|
background-image:
|
|
18028
18052
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
@@ -18030,7 +18054,7 @@ var gradients = {
|
|
|
18030
18054
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
18031
18055
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
18032
18056
|
`,
|
|
18033
|
-
playfulGradientTwo:
|
|
18057
|
+
playfulGradientTwo: css50`
|
|
18034
18058
|
background-color: #f7f8ff;
|
|
18035
18059
|
background-image:
|
|
18036
18060
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
@@ -18038,13 +18062,13 @@ var gradients = {
|
|
|
18038
18062
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
18039
18063
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
18040
18064
|
`,
|
|
18041
|
-
purple:
|
|
18065
|
+
purple: css50`
|
|
18042
18066
|
background-color: #f2caff;
|
|
18043
18067
|
background-image:
|
|
18044
18068
|
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
18045
18069
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
18046
18070
|
`,
|
|
18047
|
-
purpleWithPop:
|
|
18071
|
+
purpleWithPop: css50`
|
|
18048
18072
|
background-color: #f2caff;
|
|
18049
18073
|
background-image:
|
|
18050
18074
|
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
@@ -18052,7 +18076,7 @@ var gradients = {
|
|
|
18052
18076
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
18053
18077
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
18054
18078
|
`,
|
|
18055
|
-
yellow:
|
|
18079
|
+
yellow: css50`
|
|
18056
18080
|
background-color: #fffff0;
|
|
18057
18081
|
background-image:
|
|
18058
18082
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -18060,7 +18084,7 @@ var gradients = {
|
|
|
18060
18084
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
18061
18085
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
18062
18086
|
`,
|
|
18063
|
-
yellowWithPop:
|
|
18087
|
+
yellowWithPop: css50`
|
|
18064
18088
|
background-color: #fffff0;
|
|
18065
18089
|
background-image:
|
|
18066
18090
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -18521,7 +18545,7 @@ var ThumbnailCollage = ({
|
|
|
18521
18545
|
};
|
|
18522
18546
|
|
|
18523
18547
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
18524
|
-
import { styled as styled110, css as
|
|
18548
|
+
import { styled as styled110, css as css51 } from "styled-components";
|
|
18525
18549
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
18526
18550
|
import { jsx as jsx337, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
18527
18551
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -18579,12 +18603,12 @@ var WistiaLogoComponent = styled110.svg`
|
|
|
18579
18603
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
18580
18604
|
if ($opticallyCentered) {
|
|
18581
18605
|
if ($iconOnly) {
|
|
18582
|
-
return
|
|
18606
|
+
return css51`
|
|
18583
18607
|
aspect-ratio: 1;
|
|
18584
18608
|
padding: 11.85% 3.12% 13.91%;
|
|
18585
18609
|
`;
|
|
18586
18610
|
}
|
|
18587
|
-
return
|
|
18611
|
+
return css51`
|
|
18588
18612
|
aspect-ratio: 127 / 32;
|
|
18589
18613
|
`;
|
|
18590
18614
|
}
|