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