@wistia/ui 0.18.18 → 0.19.0-beta.d1967016.e87d448
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 +77 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.mjs +140 -92
- 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.
|
|
3
|
+
* @license @wistia/ui v0.19.0-beta.d1967016.e87d448
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -14059,6 +14059,10 @@ var StyledLabel3 = styled58(Heading)`
|
|
|
14059
14059
|
&[data-wui-data-card-skeleton='true'] {
|
|
14060
14060
|
width: 80px;
|
|
14061
14061
|
}
|
|
14062
|
+
|
|
14063
|
+
button {
|
|
14064
|
+
text-align: left;
|
|
14065
|
+
}
|
|
14062
14066
|
`;
|
|
14063
14067
|
var StyledValue = styled58(Heading)`
|
|
14064
14068
|
grid-area: value;
|
|
@@ -14100,7 +14104,7 @@ var DataCardInner = ({
|
|
|
14100
14104
|
StyledLabel3,
|
|
14101
14105
|
{
|
|
14102
14106
|
"data-wui-data-card-skeleton": isLoading,
|
|
14103
|
-
renderAs: "
|
|
14107
|
+
renderAs: "div",
|
|
14104
14108
|
variant: "heading6",
|
|
14105
14109
|
children: label
|
|
14106
14110
|
}
|
|
@@ -14109,7 +14113,7 @@ var DataCardInner = ({
|
|
|
14109
14113
|
StyledValue,
|
|
14110
14114
|
{
|
|
14111
14115
|
"data-wui-data-card-skeleton": isLoading,
|
|
14112
|
-
renderAs: "
|
|
14116
|
+
renderAs: "div",
|
|
14113
14117
|
variant: "heading3",
|
|
14114
14118
|
children: value
|
|
14115
14119
|
}
|
|
@@ -14162,9 +14166,16 @@ import { styled as styled59 } from "styled-components";
|
|
|
14162
14166
|
import { jsx as jsx279 } from "react/jsx-runtime";
|
|
14163
14167
|
var StyledDataCards = styled59(Box)`
|
|
14164
14168
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
14169
|
+
--wui-data-cards-column-count: ${({ $columns }) => $columns === "auto" ? void 0 : $columns};
|
|
14170
|
+
--wui-data-cards-total-column-gap-width: calc(var(--wui-data-cards-column-count) - 1) *
|
|
14171
|
+
var(--wui-space-02);
|
|
14172
|
+
--wui-data-cards-column-width: calc(
|
|
14173
|
+
(100% - var(--wui-data-cards-total-column-gap-width)) / var(--wui-data-cards-column-count)
|
|
14174
|
+
);
|
|
14165
14175
|
|
|
14166
14176
|
> * {
|
|
14167
14177
|
min-width: 120px;
|
|
14178
|
+
flex-basis: var(--wui-data-cards-column-width, 0);
|
|
14168
14179
|
max-width: ${({ $cardMaxWidth }) => $cardMaxWidth};
|
|
14169
14180
|
}
|
|
14170
14181
|
`;
|
|
@@ -14172,19 +14183,22 @@ var DataCards = ({
|
|
|
14172
14183
|
children,
|
|
14173
14184
|
cardMaxWidth = "none",
|
|
14174
14185
|
colorScheme = "inherit",
|
|
14186
|
+
columns = "auto",
|
|
14175
14187
|
...props
|
|
14176
14188
|
}) => {
|
|
14189
|
+
const responsiveCardMaxWidth = useResponsiveProp(cardMaxWidth);
|
|
14190
|
+
const responsiveColumns = useResponsiveProp(columns);
|
|
14177
14191
|
return /* @__PURE__ */ jsx279(
|
|
14178
14192
|
StyledDataCards,
|
|
14179
14193
|
{
|
|
14180
14194
|
...props,
|
|
14181
|
-
$cardMaxWidth:
|
|
14195
|
+
$cardMaxWidth: responsiveCardMaxWidth,
|
|
14182
14196
|
$colorScheme: colorScheme,
|
|
14197
|
+
$columns: responsiveColumns,
|
|
14183
14198
|
alignItems: "stretch",
|
|
14184
14199
|
direction: "row",
|
|
14185
14200
|
fill: "horizontal",
|
|
14186
14201
|
gap: "space-02",
|
|
14187
|
-
renderAs: "dl",
|
|
14188
14202
|
wrapItems: true,
|
|
14189
14203
|
children
|
|
14190
14204
|
}
|
|
@@ -15075,11 +15089,23 @@ var FormErrorSummary = ({ description }) => {
|
|
|
15075
15089
|
|
|
15076
15090
|
// src/components/FormField/FormField.tsx
|
|
15077
15091
|
import { Children as Children10, cloneElement as cloneElement8, useContext as useContext13 } from "react";
|
|
15078
|
-
import { styled as styled68 } from "styled-components";
|
|
15092
|
+
import { styled as styled68, css as css36 } from "styled-components";
|
|
15079
15093
|
import { isArray as isArray4, isNotNil as isNotNil28, isNotUndefined as isNotUndefined12, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
15080
|
-
import {
|
|
15094
|
+
import { jsx as jsx293, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
15095
|
+
var inlineErrorStyles = css36`
|
|
15096
|
+
grid-template-rows: 1fr auto;
|
|
15097
|
+
grid-template-areas: 'label-description input' '. error';
|
|
15098
|
+
`;
|
|
15099
|
+
var inlineBaseGridAreaStyles = css36`
|
|
15100
|
+
grid-template-rows: 1fr;
|
|
15101
|
+
grid-template-areas: 'label-description input';
|
|
15102
|
+
`;
|
|
15103
|
+
var blockGridErrorStyles = css36`
|
|
15104
|
+
grid-template-rows: auto 1fr auto;
|
|
15105
|
+
grid-template-areas: 'label-description' 'input' 'error';
|
|
15106
|
+
`;
|
|
15081
15107
|
var StyledFormField = styled68.div`
|
|
15082
|
-
--form-field-spacing: var(--wui-space-
|
|
15108
|
+
--form-field-spacing: var(--wui-space-02);
|
|
15083
15109
|
--form-field-spacing-inline: var(--wui-space-02);
|
|
15084
15110
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
15085
15111
|
|
|
@@ -15093,21 +15119,28 @@ var StyledFormField = styled68.div`
|
|
|
15093
15119
|
&[data-label-position='inline-compact'] {
|
|
15094
15120
|
gap: var(--form-field-spacing-inline);
|
|
15095
15121
|
grid-template-columns: auto 1fr;
|
|
15096
|
-
|
|
15122
|
+
${inlineBaseGridAreaStyles}
|
|
15123
|
+
${({ $hasError }) => $hasError && inlineErrorStyles}
|
|
15097
15124
|
}
|
|
15098
15125
|
|
|
15099
15126
|
&[data-label-position='inline'] {
|
|
15100
15127
|
gap: var(--form-field-spacing-inline);
|
|
15101
15128
|
grid-template-columns: minmax(auto, 1fr) 1fr;
|
|
15102
|
-
|
|
15129
|
+
${inlineBaseGridAreaStyles}
|
|
15130
|
+
${({ $hasError }) => $hasError && inlineErrorStyles}
|
|
15103
15131
|
}
|
|
15104
15132
|
|
|
15105
15133
|
&[data-label-position='block'] {
|
|
15106
15134
|
gap: var(--form-field-spacing);
|
|
15107
15135
|
grid-template-columns: 1fr;
|
|
15108
|
-
grid-template-rows: 1fr;
|
|
15136
|
+
grid-template-rows: auto 1fr;
|
|
15137
|
+
grid-template-areas: 'label-description' 'input';
|
|
15138
|
+
${({ $hasError }) => $hasError && blockGridErrorStyles}
|
|
15109
15139
|
}
|
|
15110
15140
|
`;
|
|
15141
|
+
var ErrorText = styled68(Text)`
|
|
15142
|
+
grid-area: error;
|
|
15143
|
+
`;
|
|
15111
15144
|
var StyledErrorList = styled68.ul`
|
|
15112
15145
|
margin: 0;
|
|
15113
15146
|
padding: 0;
|
|
@@ -15115,13 +15148,14 @@ var StyledErrorList = styled68.ul`
|
|
|
15115
15148
|
display: flex;
|
|
15116
15149
|
flex-direction: column;
|
|
15117
15150
|
gap: var(--wui-space-01);
|
|
15151
|
+
grid-area: error;
|
|
15118
15152
|
`;
|
|
15119
15153
|
var ErrorMessages = ({ errors, id }) => {
|
|
15120
15154
|
const isErrorArray = isArray4(errors);
|
|
15121
15155
|
const isMultipleErrors = isErrorArray && errors.length > 1;
|
|
15122
15156
|
if (!isErrorArray) {
|
|
15123
15157
|
return /* @__PURE__ */ jsx293(
|
|
15124
|
-
|
|
15158
|
+
ErrorText,
|
|
15125
15159
|
{
|
|
15126
15160
|
colorScheme: "error",
|
|
15127
15161
|
id,
|
|
@@ -15134,7 +15168,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
15134
15168
|
}
|
|
15135
15169
|
if (!isMultipleErrors) {
|
|
15136
15170
|
return /* @__PURE__ */ jsx293(
|
|
15137
|
-
|
|
15171
|
+
ErrorText,
|
|
15138
15172
|
{
|
|
15139
15173
|
colorScheme: "error",
|
|
15140
15174
|
id,
|
|
@@ -15179,12 +15213,16 @@ var FormField = ({
|
|
|
15179
15213
|
const descriptionId = `${computedId}-description`;
|
|
15180
15214
|
const errorId = `${computedId}-error`;
|
|
15181
15215
|
const ariaDescribedby = [descriptionId, errorId].filter(Boolean).join(" ") || void 0;
|
|
15216
|
+
const hasDescription = isNotNil28(description);
|
|
15217
|
+
const hasError = isNotNil28(computedError);
|
|
15218
|
+
const shouldRenderLabelDescriptionWrapper = !isIntegratedLabel || hasDescription;
|
|
15182
15219
|
let childProps = {
|
|
15183
15220
|
name,
|
|
15184
15221
|
id: computedId,
|
|
15185
15222
|
label: isIntegratedLabel ? label : void 0,
|
|
15186
15223
|
"aria-describedby": ariaDescribedby,
|
|
15187
|
-
"aria-invalid":
|
|
15224
|
+
"aria-invalid": hasError,
|
|
15225
|
+
style: { gridArea: "input" },
|
|
15188
15226
|
...props
|
|
15189
15227
|
};
|
|
15190
15228
|
if (isUndefined4(value) && isNotUndefined12(defaultValue)) {
|
|
@@ -15214,28 +15252,38 @@ var FormField = ({
|
|
|
15214
15252
|
StyledFormField,
|
|
15215
15253
|
{
|
|
15216
15254
|
...props,
|
|
15255
|
+
$hasError: hasError,
|
|
15217
15256
|
"data-label-position": labelPosition ?? formState.labelPosition,
|
|
15218
15257
|
children: [
|
|
15219
|
-
|
|
15220
|
-
|
|
15258
|
+
shouldRenderLabelDescriptionWrapper ? /* @__PURE__ */ jsxs47(
|
|
15259
|
+
Stack,
|
|
15221
15260
|
{
|
|
15222
|
-
|
|
15223
|
-
|
|
15224
|
-
|
|
15261
|
+
direction: "vertical",
|
|
15262
|
+
gap: "space-01",
|
|
15263
|
+
style: {
|
|
15264
|
+
gridArea: "label-description"
|
|
15265
|
+
},
|
|
15266
|
+
children: [
|
|
15267
|
+
!isIntegratedLabel && /* @__PURE__ */ jsx293(
|
|
15268
|
+
Label,
|
|
15269
|
+
{
|
|
15270
|
+
htmlFor: computedId,
|
|
15271
|
+
required,
|
|
15272
|
+
children: label
|
|
15273
|
+
}
|
|
15274
|
+
),
|
|
15275
|
+
hasDescription ? /* @__PURE__ */ jsx293(FormControlLabelDescription, { id: descriptionId, children: description }) : null
|
|
15276
|
+
]
|
|
15225
15277
|
}
|
|
15226
|
-
),
|
|
15227
|
-
isNotNil28(description) ? /* @__PURE__ */ jsx293(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
|
|
15278
|
+
) : null,
|
|
15228
15279
|
cloneElement8(children, childProps),
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
-
|
|
15232
|
-
|
|
15233
|
-
|
|
15234
|
-
|
|
15235
|
-
|
|
15236
|
-
}
|
|
15237
|
-
)
|
|
15238
|
-
] }) : null
|
|
15280
|
+
hasError ? /* @__PURE__ */ jsx293(
|
|
15281
|
+
ErrorMessages,
|
|
15282
|
+
{
|
|
15283
|
+
errors: computedError,
|
|
15284
|
+
id: errorId
|
|
15285
|
+
}
|
|
15286
|
+
) : null
|
|
15239
15287
|
]
|
|
15240
15288
|
}
|
|
15241
15289
|
);
|
|
@@ -15271,24 +15319,24 @@ RadioGroup.displayName = "RadioGroup_UI";
|
|
|
15271
15319
|
|
|
15272
15320
|
// src/components/Grid/Grid.tsx
|
|
15273
15321
|
import { forwardRef as forwardRef22 } from "react";
|
|
15274
|
-
import { styled as styled69, css as
|
|
15322
|
+
import { styled as styled69, css as css37 } from "styled-components";
|
|
15275
15323
|
import { isRecord as isRecord5 } from "@wistia/type-guards";
|
|
15276
15324
|
import { jsx as jsx295 } from "react/jsx-runtime";
|
|
15277
15325
|
var DEFAULT_ELEMENT5 = "div";
|
|
15278
15326
|
var getGridTemplateColumns = (maxColumns, minChildWidth, expandItems) => {
|
|
15279
15327
|
if (minChildWidth === "auto" && maxColumns === "auto") {
|
|
15280
|
-
return
|
|
15328
|
+
return css37`
|
|
15281
15329
|
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
15282
15330
|
`;
|
|
15283
15331
|
}
|
|
15284
15332
|
const gridMode = expandItems ? "auto-fit" : "auto-fill";
|
|
15285
15333
|
const minChildWidthValue = minChildWidth === "auto" ? 0 : minChildWidth;
|
|
15286
15334
|
if (maxColumns === "auto") {
|
|
15287
|
-
return
|
|
15335
|
+
return css37`
|
|
15288
15336
|
grid-template-columns: repeat(${gridMode}, minmax(${minChildWidthValue}px, 1fr));
|
|
15289
15337
|
`;
|
|
15290
15338
|
}
|
|
15291
|
-
return
|
|
15339
|
+
return css37`
|
|
15292
15340
|
/* Adapted from https://9elements.com/blog/building-a-rock-solid-auto-grid/ */
|
|
15293
15341
|
--wui-grid-total-column-gap-width: calc(${maxColumns - 1} * var(--wui-grid-column-gap));
|
|
15294
15342
|
--wui-grid-max-column-width: calc(
|
|
@@ -15572,7 +15620,7 @@ KeyboardShortcut.displayName = "KeyboardShortcut_UI";
|
|
|
15572
15620
|
|
|
15573
15621
|
// src/components/List/List.tsx
|
|
15574
15622
|
import { isNotNil as isNotNil30 } from "@wistia/type-guards";
|
|
15575
|
-
import { styled as styled74, css as
|
|
15623
|
+
import { styled as styled74, css as css38 } from "styled-components";
|
|
15576
15624
|
|
|
15577
15625
|
// src/components/List/ListItem.tsx
|
|
15578
15626
|
import { styled as styled73 } from "styled-components";
|
|
@@ -15591,7 +15639,7 @@ ListItem.displayName = "ListItem_UI";
|
|
|
15591
15639
|
|
|
15592
15640
|
// src/components/List/List.tsx
|
|
15593
15641
|
import { jsx as jsx300, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
15594
|
-
var spacesStyle =
|
|
15642
|
+
var spacesStyle = css38`
|
|
15595
15643
|
overflow: hidden;
|
|
15596
15644
|
padding-left: 0;
|
|
15597
15645
|
vertical-align: bottom;
|
|
@@ -15613,7 +15661,7 @@ var spacesStyle = css37`
|
|
|
15613
15661
|
}
|
|
15614
15662
|
}
|
|
15615
15663
|
`;
|
|
15616
|
-
var commasStyle =
|
|
15664
|
+
var commasStyle = css38`
|
|
15617
15665
|
${spacesStyle};
|
|
15618
15666
|
|
|
15619
15667
|
li {
|
|
@@ -15623,7 +15671,7 @@ var commasStyle = css37`
|
|
|
15623
15671
|
}
|
|
15624
15672
|
}
|
|
15625
15673
|
`;
|
|
15626
|
-
var slashesStyle =
|
|
15674
|
+
var slashesStyle = css38`
|
|
15627
15675
|
${spacesStyle};
|
|
15628
15676
|
|
|
15629
15677
|
li {
|
|
@@ -15634,7 +15682,7 @@ var slashesStyle = css37`
|
|
|
15634
15682
|
}
|
|
15635
15683
|
}
|
|
15636
15684
|
`;
|
|
15637
|
-
var breadcrumbsStyle =
|
|
15685
|
+
var breadcrumbsStyle = css38`
|
|
15638
15686
|
${spacesStyle};
|
|
15639
15687
|
|
|
15640
15688
|
li {
|
|
@@ -15645,7 +15693,7 @@ var breadcrumbsStyle = css37`
|
|
|
15645
15693
|
}
|
|
15646
15694
|
}
|
|
15647
15695
|
`;
|
|
15648
|
-
var unbulletedStyle =
|
|
15696
|
+
var unbulletedStyle = css38`
|
|
15649
15697
|
list-style: none;
|
|
15650
15698
|
padding-left: 0;
|
|
15651
15699
|
`;
|
|
@@ -15827,7 +15875,7 @@ var ModalHeader = ({
|
|
|
15827
15875
|
|
|
15828
15876
|
// src/components/Modal/ModalContent.tsx
|
|
15829
15877
|
import { forwardRef as forwardRef25 } from "react";
|
|
15830
|
-
import { styled as styled78, css as
|
|
15878
|
+
import { styled as styled78, css as css39, keyframes as keyframes5 } from "styled-components";
|
|
15831
15879
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
15832
15880
|
|
|
15833
15881
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -15873,7 +15921,7 @@ var modalExit = keyframes5`
|
|
|
15873
15921
|
transform: translateX(-50%) translateY(calc(var(--wui-modal-translate-y) + 24px));
|
|
15874
15922
|
}
|
|
15875
15923
|
`;
|
|
15876
|
-
var centeredModalStyles =
|
|
15924
|
+
var centeredModalStyles = css39`
|
|
15877
15925
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
15878
15926
|
--wui-modal-translate-y: -50%;
|
|
15879
15927
|
|
|
@@ -15889,7 +15937,7 @@ var centeredModalStyles = css38`
|
|
|
15889
15937
|
animation: ${modalExit} var(--wui-motion-duration-03) var(--wui-motion-ease-out);
|
|
15890
15938
|
}
|
|
15891
15939
|
`;
|
|
15892
|
-
var fixedTopModalStyles =
|
|
15940
|
+
var fixedTopModalStyles = css39`
|
|
15893
15941
|
--wui-modal-screen-offset-top: 15vh;
|
|
15894
15942
|
--wui-modal-screen-offset-bottom: 5vh;
|
|
15895
15943
|
--wui-modal-translate-y: 0%;
|
|
@@ -15930,7 +15978,7 @@ var slideOutRight = keyframes5`
|
|
|
15930
15978
|
transform: translateX(100%);
|
|
15931
15979
|
}
|
|
15932
15980
|
`;
|
|
15933
|
-
var rightSidePanelModalStyles =
|
|
15981
|
+
var rightSidePanelModalStyles = css39`
|
|
15934
15982
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
15935
15983
|
|
|
15936
15984
|
height: calc(100vh - var(--wui-modal-screen-offset) * 2);
|
|
@@ -16128,7 +16176,7 @@ ModalCallout.displayName = "ModalCallout_UI";
|
|
|
16128
16176
|
|
|
16129
16177
|
// src/components/Popover/Popover.tsx
|
|
16130
16178
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
16131
|
-
import { styled as styled82, css as
|
|
16179
|
+
import { styled as styled82, css as css41 } from "styled-components";
|
|
16132
16180
|
|
|
16133
16181
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
16134
16182
|
import { isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
@@ -16138,7 +16186,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
16138
16186
|
|
|
16139
16187
|
// src/components/Popover/PopoverArrow.tsx
|
|
16140
16188
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
16141
|
-
import { styled as styled81, css as
|
|
16189
|
+
import { styled as styled81, css as css40, keyframes as keyframes7 } from "styled-components";
|
|
16142
16190
|
import { jsx as jsx307, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
16143
16191
|
var StyledPath = styled81.path`
|
|
16144
16192
|
fill: var(--wui-color-border-secondary);
|
|
@@ -16172,7 +16220,7 @@ var StyledCircle = styled81.circle`
|
|
|
16172
16220
|
}
|
|
16173
16221
|
|
|
16174
16222
|
@media (prefers-reduced-motion: no-preference) {
|
|
16175
|
-
${({ $isAnimated }) => $isAnimated &&
|
|
16223
|
+
${({ $isAnimated }) => $isAnimated && css40`
|
|
16176
16224
|
animation-name: ${circleAnimation};
|
|
16177
16225
|
`}
|
|
16178
16226
|
}
|
|
@@ -16221,7 +16269,7 @@ import { jsx as jsx308, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
|
16221
16269
|
var StyledContent2 = styled82(Content2)`
|
|
16222
16270
|
z-index: var(--wui-zindex-popover);
|
|
16223
16271
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
16224
|
-
${({ $unstyled }) => !$unstyled &&
|
|
16272
|
+
${({ $unstyled }) => !$unstyled && css41`
|
|
16225
16273
|
border-radius: var(--wui-border-radius-02);
|
|
16226
16274
|
padding: var(--wui-space-04);
|
|
16227
16275
|
max-width: var(--wui-popover-max-width, 320px);
|
|
@@ -16371,17 +16419,17 @@ ProgressBar.displayName = "ProgressBar_UI";
|
|
|
16371
16419
|
// src/components/Radio/Radio.tsx
|
|
16372
16420
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
|
|
16373
16421
|
import { forwardRef as forwardRef27, useId as useId5 } from "react";
|
|
16374
|
-
import { styled as styled84, css as
|
|
16422
|
+
import { styled as styled84, css as css42 } from "styled-components";
|
|
16375
16423
|
import { jsx as jsx310, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
16376
|
-
var sizeSmall2 =
|
|
16424
|
+
var sizeSmall2 = css42`
|
|
16377
16425
|
--wui-radio-size: 14px;
|
|
16378
16426
|
--wui-radio-icon-size: 7px;
|
|
16379
16427
|
`;
|
|
16380
|
-
var sizeMedium2 =
|
|
16428
|
+
var sizeMedium2 = css42`
|
|
16381
16429
|
--wui-radio-size: 16px;
|
|
16382
16430
|
--wui-radio-icon-size: 8px;
|
|
16383
16431
|
`;
|
|
16384
|
-
var sizeLarge2 =
|
|
16432
|
+
var sizeLarge2 = css42`
|
|
16385
16433
|
--wui-radio-size: 20px;
|
|
16386
16434
|
--wui-radio-icon-size: 10px;
|
|
16387
16435
|
`;
|
|
@@ -16522,17 +16570,17 @@ import { forwardRef as forwardRef29 } from "react";
|
|
|
16522
16570
|
|
|
16523
16571
|
// src/components/RadioCard/RadioCardRoot.tsx
|
|
16524
16572
|
import { forwardRef as forwardRef28, useId as useId6 } from "react";
|
|
16525
|
-
import { styled as styled85, css as
|
|
16573
|
+
import { styled as styled85, css as css43 } from "styled-components";
|
|
16526
16574
|
import { isNonEmptyString as isNonEmptyString8, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
16527
16575
|
import { jsx as jsx311, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
16528
|
-
var checkedStyles =
|
|
16576
|
+
var checkedStyles = css43`
|
|
16529
16577
|
--wui-radio-card-border-color: var(--wui-color-focus-ring);
|
|
16530
16578
|
--wui-color-icon: var(--wui-color-icon-selected);
|
|
16531
16579
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-info);
|
|
16532
16580
|
--wui-color-text: var(--wui-color-text-info);
|
|
16533
16581
|
--wui-color-text-secondary: var(--wui-color-text-info);
|
|
16534
16582
|
`;
|
|
16535
|
-
var disabledStyles =
|
|
16583
|
+
var disabledStyles = css43`
|
|
16536
16584
|
--wui-radio-card-border-color: var(--wui-color-border-disabled);
|
|
16537
16585
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-disabled);
|
|
16538
16586
|
--wui-radio-card-cursor: not-allowed;
|
|
@@ -16540,10 +16588,10 @@ var disabledStyles = css42`
|
|
|
16540
16588
|
--wui-color-text: var(--wui-color-text-disabled);
|
|
16541
16589
|
--wui-color-text-secondary: var(--wui-color-text-disabled);
|
|
16542
16590
|
`;
|
|
16543
|
-
var focusStyles =
|
|
16591
|
+
var focusStyles = css43`
|
|
16544
16592
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
16545
16593
|
`;
|
|
16546
|
-
var imageCoverStyles =
|
|
16594
|
+
var imageCoverStyles = css43`
|
|
16547
16595
|
--wui-radio-card-image-inset: 0px;
|
|
16548
16596
|
--wui-radio-card-border-width: 0px;
|
|
16549
16597
|
--wui-inset-shadow-width: 1px;
|
|
@@ -16949,7 +16997,7 @@ ScrollArea.displayName = "ScrollArea_UI";
|
|
|
16949
16997
|
|
|
16950
16998
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
16951
16999
|
import { forwardRef as forwardRef32 } from "react";
|
|
16952
|
-
import { styled as styled91, css as
|
|
17000
|
+
import { styled as styled91, css as css45 } from "styled-components";
|
|
16953
17001
|
import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
|
|
16954
17002
|
import { isNil as isNil18 } from "@wistia/type-guards";
|
|
16955
17003
|
|
|
@@ -16987,7 +17035,7 @@ var useSelectedItemStyle = () => {
|
|
|
16987
17035
|
};
|
|
16988
17036
|
|
|
16989
17037
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
16990
|
-
import { styled as styled90, css as
|
|
17038
|
+
import { styled as styled90, css as css44 } from "styled-components";
|
|
16991
17039
|
import { isUndefined as isUndefined5 } from "@wistia/type-guards";
|
|
16992
17040
|
|
|
16993
17041
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
@@ -17004,7 +17052,7 @@ var useSegmentedControlValue = () => {
|
|
|
17004
17052
|
|
|
17005
17053
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
17006
17054
|
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
17007
|
-
var selectedItemIndicatorStyles =
|
|
17055
|
+
var selectedItemIndicatorStyles = css44`
|
|
17008
17056
|
background-color: var(--wui-color-bg-fill-white);
|
|
17009
17057
|
border-radius: var(--wui-border-radius-rounded);
|
|
17010
17058
|
box-shadow: var(--wui-elevation-01);
|
|
@@ -17036,7 +17084,7 @@ var SelectedItemIndicator = () => {
|
|
|
17036
17084
|
|
|
17037
17085
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17038
17086
|
import { jsx as jsx318, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
17039
|
-
var segmentedControlStyles =
|
|
17087
|
+
var segmentedControlStyles = css45`
|
|
17040
17088
|
display: inline-flex;
|
|
17041
17089
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
17042
17090
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17086,11 +17134,11 @@ SegmentedControl.displayName = "SegmentedControl_UI";
|
|
|
17086
17134
|
|
|
17087
17135
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
17088
17136
|
import { forwardRef as forwardRef33, useEffect as useEffect21, useRef as useRef22 } from "react";
|
|
17089
|
-
import { styled as styled92, css as
|
|
17137
|
+
import { styled as styled92, css as css46 } from "styled-components";
|
|
17090
17138
|
import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
|
|
17091
17139
|
import { isNotNil as isNotNil36 } from "@wistia/type-guards";
|
|
17092
17140
|
import { jsxs as jsxs61 } from "react/jsx-runtime";
|
|
17093
|
-
var segmentedControlItemStyles =
|
|
17141
|
+
var segmentedControlItemStyles = css46`
|
|
17094
17142
|
all: unset; /* ToggleGroupItem is a button element */
|
|
17095
17143
|
align-items: center;
|
|
17096
17144
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17231,7 +17279,7 @@ import {
|
|
|
17231
17279
|
ScrollDownButton
|
|
17232
17280
|
} from "@radix-ui/react-select";
|
|
17233
17281
|
import { forwardRef as forwardRef34 } from "react";
|
|
17234
|
-
import { styled as styled93, css as
|
|
17282
|
+
import { styled as styled93, css as css47 } from "styled-components";
|
|
17235
17283
|
import { jsx as jsx319, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
17236
17284
|
var StyledTrigger2 = styled93(Trigger3)`
|
|
17237
17285
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -17302,7 +17350,7 @@ var StyledContent3 = styled93(Content3)`
|
|
|
17302
17350
|
margin: var(--wui-space-02) 0;
|
|
17303
17351
|
}
|
|
17304
17352
|
`;
|
|
17305
|
-
var scrollButtonStyles =
|
|
17353
|
+
var scrollButtonStyles = css47`
|
|
17306
17354
|
align-items: center;
|
|
17307
17355
|
display: flex;
|
|
17308
17356
|
justify-content: center;
|
|
@@ -17588,25 +17636,25 @@ var Slider = ({
|
|
|
17588
17636
|
Slider.displayName = "Slider_UI";
|
|
17589
17637
|
|
|
17590
17638
|
// src/components/Table/Table.tsx
|
|
17591
|
-
import { styled as styled97, css as
|
|
17639
|
+
import { styled as styled97, css as css48 } from "styled-components";
|
|
17592
17640
|
import { jsx as jsx323 } from "react/jsx-runtime";
|
|
17593
17641
|
var StyledTable = styled97.table`
|
|
17594
17642
|
width: 100%;
|
|
17595
17643
|
border-collapse: collapse;
|
|
17596
17644
|
|
|
17597
|
-
${({ $divided }) => $divided &&
|
|
17645
|
+
${({ $divided }) => $divided && css48`
|
|
17598
17646
|
tr {
|
|
17599
17647
|
border-bottom: 1px solid var(--wui-color-border);
|
|
17600
17648
|
}
|
|
17601
17649
|
`}
|
|
17602
17650
|
|
|
17603
|
-
${({ $striped }) => $striped &&
|
|
17651
|
+
${({ $striped }) => $striped && css48`
|
|
17604
17652
|
tbody tr:nth-child(even) {
|
|
17605
17653
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
17606
17654
|
}
|
|
17607
17655
|
`}
|
|
17608
17656
|
|
|
17609
|
-
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader &&
|
|
17657
|
+
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && css48`
|
|
17610
17658
|
thead {
|
|
17611
17659
|
${visuallyHiddenStyle}
|
|
17612
17660
|
}
|
|
@@ -17649,9 +17697,9 @@ var TableBody = ({ children, ...props }) => {
|
|
|
17649
17697
|
|
|
17650
17698
|
// src/components/Table/TableCell.tsx
|
|
17651
17699
|
import { useContext as useContext17 } from "react";
|
|
17652
|
-
import { styled as styled99, css as
|
|
17700
|
+
import { styled as styled99, css as css49 } from "styled-components";
|
|
17653
17701
|
import { jsx as jsx325 } from "react/jsx-runtime";
|
|
17654
|
-
var sharedStyles =
|
|
17702
|
+
var sharedStyles = css49`
|
|
17655
17703
|
color: var(--wui-color-text);
|
|
17656
17704
|
padding: var(--wui-space-02);
|
|
17657
17705
|
text-align: left;
|
|
@@ -17934,9 +17982,9 @@ import {
|
|
|
17934
17982
|
|
|
17935
17983
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
17936
17984
|
import { isNotNil as isNotNil41 } from "@wistia/type-guards";
|
|
17937
|
-
import { css as
|
|
17985
|
+
import { css as css50 } from "styled-components";
|
|
17938
17986
|
var gradients = {
|
|
17939
|
-
defaultDarkOne:
|
|
17987
|
+
defaultDarkOne: css50`
|
|
17940
17988
|
background-color: #222d66;
|
|
17941
17989
|
background-image:
|
|
17942
17990
|
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
@@ -17944,7 +17992,7 @@ var gradients = {
|
|
|
17944
17992
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
17945
17993
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
17946
17994
|
`,
|
|
17947
|
-
defaultDarkTwo:
|
|
17995
|
+
defaultDarkTwo: css50`
|
|
17948
17996
|
background-color: #222d66;
|
|
17949
17997
|
background-image:
|
|
17950
17998
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
@@ -17952,7 +18000,7 @@ var gradients = {
|
|
|
17952
18000
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
17953
18001
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
17954
18002
|
`,
|
|
17955
|
-
defaultLightOne:
|
|
18003
|
+
defaultLightOne: css50`
|
|
17956
18004
|
background-color: #ccd5ff;
|
|
17957
18005
|
background-image:
|
|
17958
18006
|
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
@@ -17960,13 +18008,13 @@ var gradients = {
|
|
|
17960
18008
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
17961
18009
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
17962
18010
|
`,
|
|
17963
|
-
defaultLightTwo:
|
|
18011
|
+
defaultLightTwo: css50`
|
|
17964
18012
|
background-color: #ccd5ff;
|
|
17965
18013
|
background-image:
|
|
17966
18014
|
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
17967
18015
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
17968
18016
|
`,
|
|
17969
|
-
defaultMidOne:
|
|
18017
|
+
defaultMidOne: css50`
|
|
17970
18018
|
background-color: #6b84ff;
|
|
17971
18019
|
background-image:
|
|
17972
18020
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
@@ -17974,13 +18022,13 @@ var gradients = {
|
|
|
17974
18022
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
17975
18023
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
17976
18024
|
`,
|
|
17977
|
-
defaultMidTwo:
|
|
18025
|
+
defaultMidTwo: css50`
|
|
17978
18026
|
background-color: #6b84ff;
|
|
17979
18027
|
background-image:
|
|
17980
18028
|
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
17981
18029
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
17982
18030
|
`,
|
|
17983
|
-
green:
|
|
18031
|
+
green: css50`
|
|
17984
18032
|
background-color: #fafffa;
|
|
17985
18033
|
background-image:
|
|
17986
18034
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -17988,7 +18036,7 @@ var gradients = {
|
|
|
17988
18036
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
17989
18037
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
17990
18038
|
`,
|
|
17991
|
-
greenWithPop:
|
|
18039
|
+
greenWithPop: css50`
|
|
17992
18040
|
background-color: #fafffa;
|
|
17993
18041
|
background-image:
|
|
17994
18042
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -17996,7 +18044,7 @@ var gradients = {
|
|
|
17996
18044
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
17997
18045
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
17998
18046
|
`,
|
|
17999
|
-
pink:
|
|
18047
|
+
pink: css50`
|
|
18000
18048
|
background-color: #fffff0;
|
|
18001
18049
|
background-image:
|
|
18002
18050
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
@@ -18004,7 +18052,7 @@ var gradients = {
|
|
|
18004
18052
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
18005
18053
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
18006
18054
|
`,
|
|
18007
|
-
pinkWithPop:
|
|
18055
|
+
pinkWithPop: css50`
|
|
18008
18056
|
background-color: #fffff0;
|
|
18009
18057
|
background-image:
|
|
18010
18058
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
@@ -18012,7 +18060,7 @@ var gradients = {
|
|
|
18012
18060
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
18013
18061
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
18014
18062
|
`,
|
|
18015
|
-
playfulGradientOne:
|
|
18063
|
+
playfulGradientOne: css50`
|
|
18016
18064
|
background-color: #f7f8ff;
|
|
18017
18065
|
background-image:
|
|
18018
18066
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
@@ -18020,7 +18068,7 @@ var gradients = {
|
|
|
18020
18068
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
18021
18069
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
18022
18070
|
`,
|
|
18023
|
-
playfulGradientTwo:
|
|
18071
|
+
playfulGradientTwo: css50`
|
|
18024
18072
|
background-color: #f7f8ff;
|
|
18025
18073
|
background-image:
|
|
18026
18074
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
@@ -18028,13 +18076,13 @@ var gradients = {
|
|
|
18028
18076
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
18029
18077
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
18030
18078
|
`,
|
|
18031
|
-
purple:
|
|
18079
|
+
purple: css50`
|
|
18032
18080
|
background-color: #f2caff;
|
|
18033
18081
|
background-image:
|
|
18034
18082
|
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
18035
18083
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
18036
18084
|
`,
|
|
18037
|
-
purpleWithPop:
|
|
18085
|
+
purpleWithPop: css50`
|
|
18038
18086
|
background-color: #f2caff;
|
|
18039
18087
|
background-image:
|
|
18040
18088
|
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
@@ -18042,7 +18090,7 @@ var gradients = {
|
|
|
18042
18090
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
18043
18091
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
18044
18092
|
`,
|
|
18045
|
-
yellow:
|
|
18093
|
+
yellow: css50`
|
|
18046
18094
|
background-color: #fffff0;
|
|
18047
18095
|
background-image:
|
|
18048
18096
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -18050,7 +18098,7 @@ var gradients = {
|
|
|
18050
18098
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
18051
18099
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
18052
18100
|
`,
|
|
18053
|
-
yellowWithPop:
|
|
18101
|
+
yellowWithPop: css50`
|
|
18054
18102
|
background-color: #fffff0;
|
|
18055
18103
|
background-image:
|
|
18056
18104
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -18511,7 +18559,7 @@ var ThumbnailCollage = ({
|
|
|
18511
18559
|
};
|
|
18512
18560
|
|
|
18513
18561
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
18514
|
-
import { styled as styled110, css as
|
|
18562
|
+
import { styled as styled110, css as css51 } from "styled-components";
|
|
18515
18563
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
18516
18564
|
import { jsx as jsx337, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
18517
18565
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -18569,12 +18617,12 @@ var WistiaLogoComponent = styled110.svg`
|
|
|
18569
18617
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
18570
18618
|
if ($opticallyCentered) {
|
|
18571
18619
|
if ($iconOnly) {
|
|
18572
|
-
return
|
|
18620
|
+
return css51`
|
|
18573
18621
|
aspect-ratio: 1;
|
|
18574
18622
|
padding: 11.85% 3.12% 13.91%;
|
|
18575
18623
|
`;
|
|
18576
18624
|
}
|
|
18577
|
-
return
|
|
18625
|
+
return css51`
|
|
18578
18626
|
aspect-ratio: 127 / 32;
|
|
18579
18627
|
`;
|
|
18580
18628
|
}
|