@wistia/ui 0.7.1 → 0.8.0
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 +7 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.mjs +60 -78
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3001,10 +3001,6 @@ type TooltipProps = {
|
|
|
3001
3001
|
* Force the tooltip to be open without user interaction (for debugging and CI)
|
|
3002
3002
|
*/
|
|
3003
3003
|
forceOpen?: boolean;
|
|
3004
|
-
/**
|
|
3005
|
-
* The size of the tooltip
|
|
3006
|
-
*/
|
|
3007
|
-
compact?: boolean;
|
|
3008
3004
|
/**
|
|
3009
3005
|
* Hides the arrow
|
|
3010
3006
|
*/
|
|
@@ -3016,7 +3012,7 @@ type TooltipProps = {
|
|
|
3016
3012
|
* TODO - add link to Popover docs when they exist
|
|
3017
3013
|
*/
|
|
3018
3014
|
declare const Tooltip: {
|
|
3019
|
-
({ delay, direction, content, children, forceOpen,
|
|
3015
|
+
({ delay, direction, content, children, forceOpen, hideArrow, }: TooltipProps): JSX.Element;
|
|
3020
3016
|
displayName: string;
|
|
3021
3017
|
};
|
|
3022
3018
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3001,10 +3001,6 @@ type TooltipProps = {
|
|
|
3001
3001
|
* Force the tooltip to be open without user interaction (for debugging and CI)
|
|
3002
3002
|
*/
|
|
3003
3003
|
forceOpen?: boolean;
|
|
3004
|
-
/**
|
|
3005
|
-
* The size of the tooltip
|
|
3006
|
-
*/
|
|
3007
|
-
compact?: boolean;
|
|
3008
3004
|
/**
|
|
3009
3005
|
* Hides the arrow
|
|
3010
3006
|
*/
|
|
@@ -3016,7 +3012,7 @@ type TooltipProps = {
|
|
|
3016
3012
|
* TODO - add link to Popover docs when they exist
|
|
3017
3013
|
*/
|
|
3018
3014
|
declare const Tooltip: {
|
|
3019
|
-
({ delay, direction, content, children, forceOpen,
|
|
3015
|
+
({ delay, direction, content, children, forceOpen, hideArrow, }: TooltipProps): JSX.Element;
|
|
3020
3016
|
displayName: string;
|
|
3021
3017
|
};
|
|
3022
3018
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.
|
|
3
|
+
* @license @wistia/ui v0.8.0
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -8908,7 +8908,7 @@ var Divider = ({ orientation = "horizontal", ...props }) => {
|
|
|
8908
8908
|
Divider.displayName = "Divider";
|
|
8909
8909
|
|
|
8910
8910
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
8911
|
-
import styled31, { css as
|
|
8911
|
+
import styled31, { css as css26 } from "styled-components";
|
|
8912
8912
|
import { useState as useState6, useRef as useRef5 } from "react";
|
|
8913
8913
|
|
|
8914
8914
|
// src/components/Tooltip/Tooltip.tsx
|
|
@@ -8919,28 +8919,19 @@ import {
|
|
|
8919
8919
|
Portal as TooltipPortal,
|
|
8920
8920
|
Arrow as TooltipArrow
|
|
8921
8921
|
} from "@radix-ui/react-tooltip";
|
|
8922
|
-
import styled29
|
|
8922
|
+
import styled29 from "styled-components";
|
|
8923
8923
|
import { jsx as jsx218, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
8924
|
-
var CompactTooltipStyles = css24`
|
|
8925
|
-
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8926
|
-
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8927
|
-
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
8928
|
-
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8929
|
-
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8930
|
-
`;
|
|
8931
8924
|
var StyledContent = styled29(TooltipContent)`
|
|
8932
8925
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8933
8926
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8934
8927
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
8935
8928
|
--tooltip-color: var(--wui-color-text-on-fill);
|
|
8936
|
-
--tooltip-font-size: var(--wui-typography-label-
|
|
8937
|
-
--tooltip-line-height: var(--wui-typography-label-
|
|
8938
|
-
--tooltip-font-weight: var(--wui-typography-label-
|
|
8939
|
-
--tooltip-horizontal-padding: var(--wui-space-
|
|
8929
|
+
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8930
|
+
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8931
|
+
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
8932
|
+
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8940
8933
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8941
8934
|
|
|
8942
|
-
${({ $compact }) => Boolean($compact) && CompactTooltipStyles};
|
|
8943
|
-
|
|
8944
8935
|
font-family: var(--tooltip-font-family);
|
|
8945
8936
|
font-size: var(--tooltip-font-size);
|
|
8946
8937
|
border-radius: var(--tooltip-border-radius);
|
|
@@ -8972,12 +8963,11 @@ var StyledContent = styled29(TooltipContent)`
|
|
|
8972
8963
|
`;
|
|
8973
8964
|
var VISUAL_OFFSET = 6;
|
|
8974
8965
|
var Tooltip = ({
|
|
8975
|
-
delay =
|
|
8966
|
+
delay = 500,
|
|
8976
8967
|
direction = "top",
|
|
8977
8968
|
content,
|
|
8978
8969
|
children,
|
|
8979
8970
|
forceOpen,
|
|
8980
|
-
compact = false,
|
|
8981
8971
|
hideArrow = false
|
|
8982
8972
|
}) => {
|
|
8983
8973
|
const rootProps = {};
|
|
@@ -8997,7 +8987,6 @@ var Tooltip = ({
|
|
|
8997
8987
|
/* @__PURE__ */ jsx218(TooltipPortal, { children: /* @__PURE__ */ jsxs19(
|
|
8998
8988
|
StyledContent,
|
|
8999
8989
|
{
|
|
9000
|
-
$compact: compact,
|
|
9001
8990
|
side: direction,
|
|
9002
8991
|
sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
|
|
9003
8992
|
children: [
|
|
@@ -9025,12 +9014,12 @@ Tooltip.displayName = "Tooltip";
|
|
|
9025
9014
|
|
|
9026
9015
|
// src/components/Input/Input.tsx
|
|
9027
9016
|
import { forwardRef as forwardRef10, cloneElement as cloneElement4, useRef as useRef4 } from "react";
|
|
9028
|
-
import styled30, { css as
|
|
9017
|
+
import styled30, { css as css25 } from "styled-components";
|
|
9029
9018
|
import { isNil as isNil13, isNotNil as isNotNil16, isRecord as isRecord4 } from "@wistia/type-guards";
|
|
9030
9019
|
|
|
9031
9020
|
// src/css/sharedStyles/inputCssVariables.ts
|
|
9032
|
-
import { css as
|
|
9033
|
-
var inputCssVariables =
|
|
9021
|
+
import { css as css24 } from "styled-components";
|
|
9022
|
+
var inputCssVariables = css24`
|
|
9034
9023
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
9035
9024
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
9036
9025
|
--wui-input-color-border: var(--wui-color-border-secondary);
|
|
@@ -9049,7 +9038,7 @@ var inputCssVariables = css25`
|
|
|
9049
9038
|
|
|
9050
9039
|
// src/components/Input/Input.tsx
|
|
9051
9040
|
import { jsx as jsx219, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
9052
|
-
var inputStyles =
|
|
9041
|
+
var inputStyles = css25`
|
|
9053
9042
|
${inputCssVariables}
|
|
9054
9043
|
input,
|
|
9055
9044
|
textarea {
|
|
@@ -9246,7 +9235,7 @@ var StyledInput = styled31(Input)`
|
|
|
9246
9235
|
height: ${({ $height }) => `${$height}px`};
|
|
9247
9236
|
}
|
|
9248
9237
|
`;
|
|
9249
|
-
var editableStyles =
|
|
9238
|
+
var editableStyles = css26`
|
|
9250
9239
|
&:has(+ :focus-within) {
|
|
9251
9240
|
background: var(--wui-color-bg-surface-hover);
|
|
9252
9241
|
}
|
|
@@ -9343,14 +9332,7 @@ var EditableHeading = ({
|
|
|
9343
9332
|
);
|
|
9344
9333
|
}
|
|
9345
9334
|
return /* @__PURE__ */ jsxs21(Fragment5, { children: [
|
|
9346
|
-
/* @__PURE__ */ jsx220(
|
|
9347
|
-
Tooltip,
|
|
9348
|
-
{
|
|
9349
|
-
compact: true,
|
|
9350
|
-
content: tooltipText,
|
|
9351
|
-
children: HeadingComponent2
|
|
9352
|
-
}
|
|
9353
|
-
),
|
|
9335
|
+
/* @__PURE__ */ jsx220(Tooltip, { content: tooltipText, children: HeadingComponent2 }),
|
|
9354
9336
|
/* @__PURE__ */ jsx220(ScreenReaderOnly, { children: /* @__PURE__ */ jsx220(
|
|
9355
9337
|
"button",
|
|
9356
9338
|
{
|
|
@@ -9580,9 +9562,9 @@ import styled36 from "styled-components";
|
|
|
9580
9562
|
import { isArray as isArray2, isNotNil as isNotNil17, isNotUndefined as isNotUndefined9, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
9581
9563
|
|
|
9582
9564
|
// src/components/Label/Label.tsx
|
|
9583
|
-
import styled34, { css as
|
|
9565
|
+
import styled34, { css as css27 } from "styled-components";
|
|
9584
9566
|
import { jsx as jsx224 } from "react/jsx-runtime";
|
|
9585
|
-
var requiredStyle =
|
|
9567
|
+
var requiredStyle = css27`
|
|
9586
9568
|
&::after {
|
|
9587
9569
|
color: var(--wui-color-text-error);
|
|
9588
9570
|
display: inline;
|
|
@@ -9590,7 +9572,7 @@ var requiredStyle = css28`
|
|
|
9590
9572
|
content: '*';
|
|
9591
9573
|
}
|
|
9592
9574
|
`;
|
|
9593
|
-
var disabledStyle3 =
|
|
9575
|
+
var disabledStyle3 = css27`
|
|
9594
9576
|
color: var(--wui-color-text-disabled);
|
|
9595
9577
|
`;
|
|
9596
9578
|
var StyledLabel3 = styled34.label`
|
|
@@ -9896,7 +9878,7 @@ var IconButton = forwardRef13(
|
|
|
9896
9878
|
IconButton.displayName = "IconButton";
|
|
9897
9879
|
|
|
9898
9880
|
// src/components/Menu/Menu.tsx
|
|
9899
|
-
import styled38, { css as
|
|
9881
|
+
import styled38, { css as css28, keyframes as keyframes2 } from "styled-components";
|
|
9900
9882
|
import {
|
|
9901
9883
|
DropdownMenu,
|
|
9902
9884
|
DropdownMenuTrigger,
|
|
@@ -9933,7 +9915,7 @@ var close = keyframes2`
|
|
|
9933
9915
|
transform: scale(.97) translateY(-8px);
|
|
9934
9916
|
}
|
|
9935
9917
|
`;
|
|
9936
|
-
var menuItemCss =
|
|
9918
|
+
var menuItemCss = css28`
|
|
9937
9919
|
--menu-label-description-gap: var(--wui-space-01);
|
|
9938
9920
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
9939
9921
|
--menu-item-left-icon-size: 24px;
|
|
@@ -9944,7 +9926,7 @@ var menuItemCss = css29`
|
|
|
9944
9926
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
9945
9927
|
--menu-divider-margin: var(--wui-space-02);
|
|
9946
9928
|
`;
|
|
9947
|
-
var compactMenuItemCss =
|
|
9929
|
+
var compactMenuItemCss = css28`
|
|
9948
9930
|
--menu-label-description-gap: 0;
|
|
9949
9931
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
9950
9932
|
--menu-item-left-icon-size: 16px;
|
|
@@ -9955,7 +9937,7 @@ var compactMenuItemCss = css29`
|
|
|
9955
9937
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
9956
9938
|
--menu-divider-margin: var(--wui-space-01);
|
|
9957
9939
|
`;
|
|
9958
|
-
var menuContentCss =
|
|
9940
|
+
var menuContentCss = css28`
|
|
9959
9941
|
--menu-font-family: var(--wui-typography-family-default);
|
|
9960
9942
|
--menu-bg: var(--wui-color-bg-surface);
|
|
9961
9943
|
--menu-shadow: var(--wui-elevation-01);
|
|
@@ -10727,7 +10709,7 @@ Modal.displayName = "Modal";
|
|
|
10727
10709
|
|
|
10728
10710
|
// src/components/Popover/Popover.tsx
|
|
10729
10711
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
10730
|
-
import styled48, { css as
|
|
10712
|
+
import styled48, { css as css29 } from "styled-components";
|
|
10731
10713
|
|
|
10732
10714
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
10733
10715
|
import { isNotNil as isNotNil23 } from "@wistia/type-guards";
|
|
@@ -10738,7 +10720,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
10738
10720
|
// src/components/Popover/Popover.tsx
|
|
10739
10721
|
import { jsx as jsx244, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
10740
10722
|
var StyledContent2 = styled48(Content2)`
|
|
10741
|
-
${({ $unstyled }) => !$unstyled &&
|
|
10723
|
+
${({ $unstyled }) => !$unstyled && css29`
|
|
10742
10724
|
border-radius: var(--wui-border-radius-02);
|
|
10743
10725
|
padding: var(--wui-space-04);
|
|
10744
10726
|
max-width: var(--wui-popover-max-width, 320px);
|
|
@@ -10878,7 +10860,7 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
10878
10860
|
|
|
10879
10861
|
// src/components/Radio/Radio.tsx
|
|
10880
10862
|
import { forwardRef as forwardRef19, useId as useId3 } from "react";
|
|
10881
|
-
import styled50, { css as
|
|
10863
|
+
import styled50, { css as css30 } from "styled-components";
|
|
10882
10864
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
10883
10865
|
import { jsx as jsx246, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
10884
10866
|
var RadioIcon = () => /* @__PURE__ */ jsx246(
|
|
@@ -10900,7 +10882,7 @@ var RadioIcon = () => /* @__PURE__ */ jsx246(
|
|
|
10900
10882
|
)
|
|
10901
10883
|
}
|
|
10902
10884
|
);
|
|
10903
|
-
var sizeSmall2 =
|
|
10885
|
+
var sizeSmall2 = css30`
|
|
10904
10886
|
width: 14px;
|
|
10905
10887
|
height: 14px;
|
|
10906
10888
|
min-width: 14px;
|
|
@@ -10911,7 +10893,7 @@ var sizeSmall2 = css31`
|
|
|
10911
10893
|
height: 7px;
|
|
10912
10894
|
}
|
|
10913
10895
|
`;
|
|
10914
|
-
var sizeMedium2 =
|
|
10896
|
+
var sizeMedium2 = css30`
|
|
10915
10897
|
width: 16px;
|
|
10916
10898
|
height: 16px;
|
|
10917
10899
|
min-width: 16px;
|
|
@@ -10922,7 +10904,7 @@ var sizeMedium2 = css31`
|
|
|
10922
10904
|
height: 8px;
|
|
10923
10905
|
}
|
|
10924
10906
|
`;
|
|
10925
|
-
var sizeLarge2 =
|
|
10907
|
+
var sizeLarge2 = css30`
|
|
10926
10908
|
width: 20px;
|
|
10927
10909
|
height: 20px;
|
|
10928
10910
|
min-width: 20px;
|
|
@@ -11046,7 +11028,7 @@ Radio.displayName = "Radio";
|
|
|
11046
11028
|
|
|
11047
11029
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
11048
11030
|
import { forwardRef as forwardRef20 } from "react";
|
|
11049
|
-
import styled52, { css as
|
|
11031
|
+
import styled52, { css as css31 } from "styled-components";
|
|
11050
11032
|
import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
|
|
11051
11033
|
import { isNil as isNil14 } from "@wistia/type-guards";
|
|
11052
11034
|
|
|
@@ -11137,7 +11119,7 @@ var SelectedItemIndicator = () => {
|
|
|
11137
11119
|
|
|
11138
11120
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
11139
11121
|
import { jsx as jsx249, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
11140
|
-
var segmentedControlStyles =
|
|
11122
|
+
var segmentedControlStyles = css31`
|
|
11141
11123
|
display: inline-flex;
|
|
11142
11124
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
11143
11125
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -11186,11 +11168,11 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
11186
11168
|
|
|
11187
11169
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
11188
11170
|
import { forwardRef as forwardRef21, useEffect as useEffect8, useRef as useRef10 } from "react";
|
|
11189
|
-
import styled53, { css as
|
|
11171
|
+
import styled53, { css as css32 } from "styled-components";
|
|
11190
11172
|
import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
11191
11173
|
import { isNotNil as isNotNil25 } from "@wistia/type-guards";
|
|
11192
11174
|
import { jsxs as jsxs36 } from "react/jsx-runtime";
|
|
11193
|
-
var segmentedControlItemStyles =
|
|
11175
|
+
var segmentedControlItemStyles = css32`
|
|
11194
11176
|
all: unset; /* ToggleGroupItem is a button element */
|
|
11195
11177
|
align-items: center;
|
|
11196
11178
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -11515,10 +11497,10 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
|
11515
11497
|
|
|
11516
11498
|
// src/components/Switch/Switch.tsx
|
|
11517
11499
|
import { forwardRef as forwardRef24, useId as useId4 } from "react";
|
|
11518
|
-
import styled57, { css as
|
|
11500
|
+
import styled57, { css as css33 } from "styled-components";
|
|
11519
11501
|
import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
11520
11502
|
import { jsx as jsx253, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
11521
|
-
var sizeSmall3 =
|
|
11503
|
+
var sizeSmall3 = css33`
|
|
11522
11504
|
--wui-size-small-width: 24px;
|
|
11523
11505
|
--wui-size-small-height: 14px;
|
|
11524
11506
|
|
|
@@ -11533,7 +11515,7 @@ var sizeSmall3 = css34`
|
|
|
11533
11515
|
height: calc(var(--wui-size-small-width) / 2);
|
|
11534
11516
|
}
|
|
11535
11517
|
`;
|
|
11536
|
-
var sizeMedium3 =
|
|
11518
|
+
var sizeMedium3 = css33`
|
|
11537
11519
|
--wui-size-medium-width: 32px;
|
|
11538
11520
|
--wui-size-medium-height: 18px;
|
|
11539
11521
|
|
|
@@ -11548,7 +11530,7 @@ var sizeMedium3 = css34`
|
|
|
11548
11530
|
height: calc(var(--wui-size-medium-width) / 2);
|
|
11549
11531
|
}
|
|
11550
11532
|
`;
|
|
11551
|
-
var sizeLarge3 =
|
|
11533
|
+
var sizeLarge3 = css33`
|
|
11552
11534
|
--wui-size-large-width: 40px;
|
|
11553
11535
|
--wui-size-large-height: 22px;
|
|
11554
11536
|
|
|
@@ -11677,19 +11659,19 @@ var Switch = forwardRef24(
|
|
|
11677
11659
|
Switch.displayName = "Switch";
|
|
11678
11660
|
|
|
11679
11661
|
// src/components/Table/Table.tsx
|
|
11680
|
-
import styled58, { css as
|
|
11662
|
+
import styled58, { css as css34 } from "styled-components";
|
|
11681
11663
|
import { jsx as jsx254 } from "react/jsx-runtime";
|
|
11682
11664
|
var StyledTable = styled58.table`
|
|
11683
11665
|
width: 100%;
|
|
11684
11666
|
border-collapse: collapse;
|
|
11685
11667
|
|
|
11686
|
-
${({ $striped }) => $striped &&
|
|
11668
|
+
${({ $striped }) => $striped && css34`
|
|
11687
11669
|
tbody tr:nth-child(even) {
|
|
11688
11670
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
11689
11671
|
}
|
|
11690
11672
|
`}
|
|
11691
11673
|
|
|
11692
|
-
${({ $divided }) => $divided &&
|
|
11674
|
+
${({ $divided }) => $divided && css34`
|
|
11693
11675
|
tr {
|
|
11694
11676
|
border-bottom: 1px solid var(--wui-color-border);
|
|
11695
11677
|
}
|
|
@@ -11728,9 +11710,9 @@ var TableBody = ({ children, ...props }) => {
|
|
|
11728
11710
|
|
|
11729
11711
|
// src/components/Table/TableCell.tsx
|
|
11730
11712
|
import { useContext as useContext7 } from "react";
|
|
11731
|
-
import styled60, { css as
|
|
11713
|
+
import styled60, { css as css35 } from "styled-components";
|
|
11732
11714
|
import { jsx as jsx256 } from "react/jsx-runtime";
|
|
11733
|
-
var sharedStyles =
|
|
11715
|
+
var sharedStyles = css35`
|
|
11734
11716
|
color: var(--wui-color-text);
|
|
11735
11717
|
padding: var(--wui-space-02);
|
|
11736
11718
|
text-align: left;
|
|
@@ -12246,7 +12228,7 @@ var Tag = forwardRef28(
|
|
|
12246
12228
|
Tag.displayName = "Tag";
|
|
12247
12229
|
|
|
12248
12230
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
12249
|
-
import styled70, { css as
|
|
12231
|
+
import styled70, { css as css36 } from "styled-components";
|
|
12250
12232
|
import { isNotNil as isNotNil30 } from "@wistia/type-guards";
|
|
12251
12233
|
import { jsx as jsx266, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
12252
12234
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -12304,12 +12286,12 @@ var WistiaLogoComponent = styled70.svg`
|
|
|
12304
12286
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
12305
12287
|
if ($opticallyCentered) {
|
|
12306
12288
|
if ($iconOnly) {
|
|
12307
|
-
return
|
|
12289
|
+
return css36`
|
|
12308
12290
|
aspect-ratio: 1;
|
|
12309
12291
|
padding: 11.85% 3.12% 13.91%;
|
|
12310
12292
|
`;
|
|
12311
12293
|
}
|
|
12312
|
-
return
|
|
12294
|
+
return css36`
|
|
12313
12295
|
aspect-ratio: 127 / 32;
|
|
12314
12296
|
`;
|
|
12315
12297
|
}
|
|
@@ -12413,9 +12395,9 @@ import { isNil as isNil17, isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
|
12413
12395
|
|
|
12414
12396
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
12415
12397
|
import { isNotNil as isNotNil32 } from "@wistia/type-guards";
|
|
12416
|
-
import { css as
|
|
12398
|
+
import { css as css37 } from "styled-components";
|
|
12417
12399
|
var gradients = {
|
|
12418
|
-
defaultDarkOne:
|
|
12400
|
+
defaultDarkOne: css37`
|
|
12419
12401
|
background-color: #222d66;
|
|
12420
12402
|
background-image:
|
|
12421
12403
|
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
@@ -12423,7 +12405,7 @@ var gradients = {
|
|
|
12423
12405
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
12424
12406
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
12425
12407
|
`,
|
|
12426
|
-
defaultDarkTwo:
|
|
12408
|
+
defaultDarkTwo: css37`
|
|
12427
12409
|
background-color: #222d66;
|
|
12428
12410
|
background-image:
|
|
12429
12411
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
@@ -12431,7 +12413,7 @@ var gradients = {
|
|
|
12431
12413
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
12432
12414
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
12433
12415
|
`,
|
|
12434
|
-
defaultLightOne:
|
|
12416
|
+
defaultLightOne: css37`
|
|
12435
12417
|
background-color: #ccd5ff;
|
|
12436
12418
|
background-image:
|
|
12437
12419
|
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
@@ -12439,13 +12421,13 @@ var gradients = {
|
|
|
12439
12421
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
12440
12422
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
12441
12423
|
`,
|
|
12442
|
-
defaultLightTwo:
|
|
12424
|
+
defaultLightTwo: css37`
|
|
12443
12425
|
background-color: #ccd5ff;
|
|
12444
12426
|
background-image:
|
|
12445
12427
|
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
12446
12428
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
12447
12429
|
`,
|
|
12448
|
-
defaultMidOne:
|
|
12430
|
+
defaultMidOne: css37`
|
|
12449
12431
|
background-color: #6b84ff;
|
|
12450
12432
|
background-image:
|
|
12451
12433
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
@@ -12453,13 +12435,13 @@ var gradients = {
|
|
|
12453
12435
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
12454
12436
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
12455
12437
|
`,
|
|
12456
|
-
defaultMidTwo:
|
|
12438
|
+
defaultMidTwo: css37`
|
|
12457
12439
|
background-color: #6b84ff;
|
|
12458
12440
|
background-image:
|
|
12459
12441
|
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
12460
12442
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
12461
12443
|
`,
|
|
12462
|
-
green:
|
|
12444
|
+
green: css37`
|
|
12463
12445
|
background-color: #fafffa;
|
|
12464
12446
|
background-image:
|
|
12465
12447
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -12467,7 +12449,7 @@ var gradients = {
|
|
|
12467
12449
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
12468
12450
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
12469
12451
|
`,
|
|
12470
|
-
greenWithPop:
|
|
12452
|
+
greenWithPop: css37`
|
|
12471
12453
|
background-color: #fafffa;
|
|
12472
12454
|
background-image:
|
|
12473
12455
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -12475,7 +12457,7 @@ var gradients = {
|
|
|
12475
12457
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
12476
12458
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
12477
12459
|
`,
|
|
12478
|
-
pink:
|
|
12460
|
+
pink: css37`
|
|
12479
12461
|
background-color: #fffff0;
|
|
12480
12462
|
background-image:
|
|
12481
12463
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
@@ -12483,7 +12465,7 @@ var gradients = {
|
|
|
12483
12465
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
12484
12466
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
12485
12467
|
`,
|
|
12486
|
-
pinkWithPop:
|
|
12468
|
+
pinkWithPop: css37`
|
|
12487
12469
|
background-color: #fffff0;
|
|
12488
12470
|
background-image:
|
|
12489
12471
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
@@ -12491,7 +12473,7 @@ var gradients = {
|
|
|
12491
12473
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
12492
12474
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
12493
12475
|
`,
|
|
12494
|
-
playfulGradientOne:
|
|
12476
|
+
playfulGradientOne: css37`
|
|
12495
12477
|
background-color: #f7f8ff;
|
|
12496
12478
|
background-image:
|
|
12497
12479
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
@@ -12499,7 +12481,7 @@ var gradients = {
|
|
|
12499
12481
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
12500
12482
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
12501
12483
|
`,
|
|
12502
|
-
playfulGradientTwo:
|
|
12484
|
+
playfulGradientTwo: css37`
|
|
12503
12485
|
background-color: #f7f8ff;
|
|
12504
12486
|
background-image:
|
|
12505
12487
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
@@ -12507,13 +12489,13 @@ var gradients = {
|
|
|
12507
12489
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
12508
12490
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
12509
12491
|
`,
|
|
12510
|
-
purple:
|
|
12492
|
+
purple: css37`
|
|
12511
12493
|
background-color: #f2caff;
|
|
12512
12494
|
background-image:
|
|
12513
12495
|
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
12514
12496
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
12515
12497
|
`,
|
|
12516
|
-
purpleWithPop:
|
|
12498
|
+
purpleWithPop: css37`
|
|
12517
12499
|
background-color: #f2caff;
|
|
12518
12500
|
background-image:
|
|
12519
12501
|
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
@@ -12521,7 +12503,7 @@ var gradients = {
|
|
|
12521
12503
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
12522
12504
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
12523
12505
|
`,
|
|
12524
|
-
yellow:
|
|
12506
|
+
yellow: css37`
|
|
12525
12507
|
background-color: #fffff0;
|
|
12526
12508
|
background-image:
|
|
12527
12509
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -12529,7 +12511,7 @@ var gradients = {
|
|
|
12529
12511
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
12530
12512
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
12531
12513
|
`,
|
|
12532
|
-
yellowWithPop:
|
|
12514
|
+
yellowWithPop: css37`
|
|
12533
12515
|
background-color: #fffff0;
|
|
12534
12516
|
background-image:
|
|
12535
12517
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|