@wistia/ui 0.16.0-beta.f48d7a43.69f3618 → 0.16.1-beta.050f1228.4a2561c
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 +338 -303
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +61 -61
- package/dist/index.d.ts +61 -61
- package/dist/index.mjs +146 -111
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -7
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.16.
|
|
3
|
+
* @license @wistia/ui v0.16.1-beta.050f1228.4a2561c
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -3058,12 +3058,12 @@ import { toast as sonnerToast } from "sonner";
|
|
|
3058
3058
|
|
|
3059
3059
|
// src/private/components/Toast/Toast.tsx
|
|
3060
3060
|
import { cloneElement, isValidElement } from "react";
|
|
3061
|
-
import styled2 from "styled-components";
|
|
3061
|
+
import { styled as styled2 } from "styled-components";
|
|
3062
3062
|
import { isNotNil as isNotNil4 } from "@wistia/type-guards";
|
|
3063
3063
|
|
|
3064
3064
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
3065
3065
|
import { isNotNil as isNotNil3 } from "@wistia/type-guards";
|
|
3066
|
-
import styled,
|
|
3066
|
+
import { styled, css as css14 } from "styled-components";
|
|
3067
3067
|
|
|
3068
3068
|
// src/css/lineClampCss.tsx
|
|
3069
3069
|
import { css as css13 } from "styled-components";
|
|
@@ -3267,11 +3267,11 @@ var useToast = () => {
|
|
|
3267
3267
|
|
|
3268
3268
|
// src/components/ActionButton/ActionButton.tsx
|
|
3269
3269
|
import { forwardRef as forwardRef3 } from "react";
|
|
3270
|
-
import styled6,
|
|
3270
|
+
import { styled as styled6, css as css19 } from "styled-components";
|
|
3271
3271
|
|
|
3272
3272
|
// src/components/Button/Button.tsx
|
|
3273
3273
|
import { forwardRef as forwardRef2 } from "react";
|
|
3274
|
-
import styled5 from "styled-components";
|
|
3274
|
+
import { styled as styled5 } from "styled-components";
|
|
3275
3275
|
import { isNotNil as isNotNil6, isNotUndefined as isNotUndefined4 } from "@wistia/type-guards";
|
|
3276
3276
|
|
|
3277
3277
|
// src/css/buttonResetCss.tsx
|
|
@@ -3477,7 +3477,7 @@ var buttonSizeStyles = {
|
|
|
3477
3477
|
|
|
3478
3478
|
// src/components/Icon/Icon.tsx
|
|
3479
3479
|
import { isNil as isNil5 } from "@wistia/type-guards";
|
|
3480
|
-
import styled3,
|
|
3480
|
+
import { styled as styled3, css as css18 } from "styled-components";
|
|
3481
3481
|
|
|
3482
3482
|
// src/components/Icon/icons/AbTestIcon.tsx
|
|
3483
3483
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
@@ -7569,7 +7569,7 @@ Icon.displayName = "Icon_UI";
|
|
|
7569
7569
|
|
|
7570
7570
|
// src/components/Link/Link.tsx
|
|
7571
7571
|
import { forwardRef } from "react";
|
|
7572
|
-
import styled4 from "styled-components";
|
|
7572
|
+
import { styled as styled4 } from "styled-components";
|
|
7573
7573
|
import { Link as RouterLink, useInRouterContext } from "react-router";
|
|
7574
7574
|
import { isFunction as isFunction2, isNil as isNil6, isNotNil as isNotNil5, isNotUndefined as isNotUndefined3, isUndefined as isUndefined2 } from "@wistia/type-guards";
|
|
7575
7575
|
import { jsx as jsx199, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
@@ -8002,7 +8002,7 @@ ActionButton.displayName = "ActionButton_UI";
|
|
|
8002
8002
|
// src/components/Avatar/Avatar.tsx
|
|
8003
8003
|
import { useState as useState9, useMemo as useMemo4, useEffect as useEffect7 } from "react";
|
|
8004
8004
|
import { isNil as isNil8, isNotNil as isNotNil8 } from "@wistia/type-guards";
|
|
8005
|
-
import styled9 from "styled-components";
|
|
8005
|
+
import { styled as styled9 } from "styled-components";
|
|
8006
8006
|
|
|
8007
8007
|
// src/components/Avatar/formatNameForDisplay.tsx
|
|
8008
8008
|
import { isNil as isNil7, isString, isEmptyString } from "@wistia/type-guards";
|
|
@@ -8019,7 +8019,7 @@ var formatNameForDisplay = (name) => {
|
|
|
8019
8019
|
};
|
|
8020
8020
|
|
|
8021
8021
|
// src/components/Image/Image.tsx
|
|
8022
|
-
import styled7 from "styled-components";
|
|
8022
|
+
import { styled as styled7 } from "styled-components";
|
|
8023
8023
|
import { isNotNil as isNotNil7 } from "@wistia/type-guards";
|
|
8024
8024
|
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
8025
8025
|
var getFillStyle = (fillContainer) => {
|
|
@@ -8072,7 +8072,7 @@ var Image = ({
|
|
|
8072
8072
|
Image.displayName = "Image_UI";
|
|
8073
8073
|
|
|
8074
8074
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
8075
|
-
import styled8 from "styled-components";
|
|
8075
|
+
import { styled as styled8 } from "styled-components";
|
|
8076
8076
|
import { jsx as jsx203 } from "react/jsx-runtime";
|
|
8077
8077
|
var defaultColorSchemeOptions = ["standard", "inherit"];
|
|
8078
8078
|
var semanticColorSchemeOptions = ["error", "info", "success", "warning"];
|
|
@@ -8254,7 +8254,7 @@ Avatar.displayName = "Avatar_UI";
|
|
|
8254
8254
|
|
|
8255
8255
|
// src/components/Badge/Badge.tsx
|
|
8256
8256
|
import { forwardRef as forwardRef4 } from "react";
|
|
8257
|
-
import styled10 from "styled-components";
|
|
8257
|
+
import { styled as styled10 } from "styled-components";
|
|
8258
8258
|
import { isNotNil as isNotNil9 } from "@wistia/type-guards";
|
|
8259
8259
|
import { jsx as jsx205, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
8260
8260
|
var StyledBadge = styled10.div`
|
|
@@ -8306,12 +8306,12 @@ Badge.displayName = "Badge_UI";
|
|
|
8306
8306
|
|
|
8307
8307
|
// src/components/Banner/Banner.tsx
|
|
8308
8308
|
import { useEffect as useEffect8, useState as useState10, useMemo as useMemo5 } from "react";
|
|
8309
|
-
import styled16 from "styled-components";
|
|
8309
|
+
import { styled as styled16 } from "styled-components";
|
|
8310
8310
|
import { isNil as isNil11, isNotNil as isNotNil13 } from "@wistia/type-guards";
|
|
8311
8311
|
|
|
8312
8312
|
// src/components/Box/Box.tsx
|
|
8313
8313
|
import { forwardRef as forwardRef5 } from "react";
|
|
8314
|
-
import styled11,
|
|
8314
|
+
import { styled as styled11, css as css20 } from "styled-components";
|
|
8315
8315
|
import { isNotNil as isNotNil10, isRecord as isRecord3, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
|
|
8316
8316
|
|
|
8317
8317
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
@@ -8508,7 +8508,7 @@ var Box = makePolymorphic(BoxComponent);
|
|
|
8508
8508
|
|
|
8509
8509
|
// src/components/Heading/Heading.tsx
|
|
8510
8510
|
import { forwardRef as forwardRef6 } from "react";
|
|
8511
|
-
import styled12,
|
|
8511
|
+
import { styled as styled12, css as css21 } from "styled-components";
|
|
8512
8512
|
import { isNotNil as isNotNil11 } from "@wistia/type-guards";
|
|
8513
8513
|
|
|
8514
8514
|
// src/private/helpers/applyMaxCharsToChildren/applyMaxCharsToChildren.ts
|
|
@@ -8687,7 +8687,7 @@ var Heading = makePolymorphic(HeadingComponent);
|
|
|
8687
8687
|
|
|
8688
8688
|
// src/components/Text/Text.tsx
|
|
8689
8689
|
import { forwardRef as forwardRef7 } from "react";
|
|
8690
|
-
import styled13,
|
|
8690
|
+
import { styled as styled13, css as css22 } from "styled-components";
|
|
8691
8691
|
import { isNotNil as isNotNil12 } from "@wistia/type-guards";
|
|
8692
8692
|
import { jsx as jsx208 } from "react/jsx-runtime";
|
|
8693
8693
|
var sharedBodyStyle = css22`
|
|
@@ -8909,7 +8909,7 @@ TextComponent.displayName = "Text_UI";
|
|
|
8909
8909
|
var Text = makePolymorphic(TextComponent);
|
|
8910
8910
|
|
|
8911
8911
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
8912
|
-
import styled14,
|
|
8912
|
+
import { styled as styled14, css as css23 } from "styled-components";
|
|
8913
8913
|
import { isNil as isNil10 } from "@wistia/type-guards";
|
|
8914
8914
|
import { jsx as jsx209 } from "react/jsx-runtime";
|
|
8915
8915
|
var getAlignment = (align) => {
|
|
@@ -8989,7 +8989,7 @@ ButtonGroup.displayName = "ButtonGroup_UI";
|
|
|
8989
8989
|
|
|
8990
8990
|
// src/components/IconButton/IconButton.tsx
|
|
8991
8991
|
import { Children, cloneElement as cloneElement2, forwardRef as forwardRef8 } from "react";
|
|
8992
|
-
import styled15 from "styled-components";
|
|
8992
|
+
import { styled as styled15 } from "styled-components";
|
|
8993
8993
|
import { jsx as jsx210 } from "react/jsx-runtime";
|
|
8994
8994
|
var StyledButton2 = styled15(Button)`
|
|
8995
8995
|
--icon-button-size-sm: 24px;
|
|
@@ -9190,7 +9190,7 @@ Banner.displayName = "Banner_UI";
|
|
|
9190
9190
|
|
|
9191
9191
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
9192
9192
|
import { Children as Children2 } from "react";
|
|
9193
|
-
import styled17 from "styled-components";
|
|
9193
|
+
import { styled as styled17 } from "styled-components";
|
|
9194
9194
|
import { Fragment as Fragment4, jsx as jsx212, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
9195
9195
|
var StyledBreadcrumbs = styled17.nav`
|
|
9196
9196
|
display: flex;
|
|
@@ -9237,7 +9237,7 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
9237
9237
|
Breadcrumbs.displayName = "Breadcrumbs_UI";
|
|
9238
9238
|
|
|
9239
9239
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
9240
|
-
import styled18 from "styled-components";
|
|
9240
|
+
import { styled as styled18 } from "styled-components";
|
|
9241
9241
|
import { Fragment as Fragment5, jsx as jsx213, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
9242
9242
|
var BreadcrumbContent = styled18.span`
|
|
9243
9243
|
overflow: hidden;
|
|
@@ -9271,7 +9271,7 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
|
9271
9271
|
};
|
|
9272
9272
|
|
|
9273
9273
|
// src/components/Card/Card.tsx
|
|
9274
|
-
import styled19 from "styled-components";
|
|
9274
|
+
import { styled as styled19 } from "styled-components";
|
|
9275
9275
|
import { jsx as jsx214 } from "react/jsx-runtime";
|
|
9276
9276
|
var StyledCard = styled19(Box)`
|
|
9277
9277
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -9331,7 +9331,7 @@ Card.displayName = "Card_UI";
|
|
|
9331
9331
|
|
|
9332
9332
|
// src/components/Center/Center.tsx
|
|
9333
9333
|
import { forwardRef as forwardRef9 } from "react";
|
|
9334
|
-
import styled20 from "styled-components";
|
|
9334
|
+
import { styled as styled20 } from "styled-components";
|
|
9335
9335
|
import { jsx as jsx215 } from "react/jsx-runtime";
|
|
9336
9336
|
var StyledCenter = styled20.div`
|
|
9337
9337
|
box-sizing: border-box;
|
|
@@ -9363,14 +9363,14 @@ Center.displayName = "Center_UI";
|
|
|
9363
9363
|
// src/components/Checkbox/Checkbox.tsx
|
|
9364
9364
|
import { isNonEmptyString as isNonEmptyString3, isNotUndefined as isNotUndefined7 } from "@wistia/type-guards";
|
|
9365
9365
|
import { forwardRef as forwardRef12, useId as useId2 } from "react";
|
|
9366
|
-
import styled27,
|
|
9366
|
+
import { styled as styled27, css as css26 } from "styled-components";
|
|
9367
9367
|
|
|
9368
9368
|
// src/private/components/FormControlLabel/FormControlLabel.tsx
|
|
9369
9369
|
import { isNil as isNil13, isNotNil as isNotNil15 } from "@wistia/type-guards";
|
|
9370
|
-
import styled23,
|
|
9370
|
+
import { styled as styled23, css as css25 } from "styled-components";
|
|
9371
9371
|
|
|
9372
9372
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
9373
|
-
import styled21 from "styled-components";
|
|
9373
|
+
import { styled as styled21 } from "styled-components";
|
|
9374
9374
|
import { isNotNil as isNotNil14 } from "@wistia/type-guards";
|
|
9375
9375
|
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
9376
9376
|
var VisuallyHidden = styled21.div({ ...visuallyHiddenStyle });
|
|
@@ -9392,7 +9392,7 @@ var ScreenReaderOnly = ({
|
|
|
9392
9392
|
ScreenReaderOnly.displayName = "ScreenReaderOnly_UI";
|
|
9393
9393
|
|
|
9394
9394
|
// src/private/components/FormControlLabel/FormControlLabelDescription.tsx
|
|
9395
|
-
import styled22,
|
|
9395
|
+
import { styled as styled22, css as css24 } from "styled-components";
|
|
9396
9396
|
import { isNil as isNil12 } from "@wistia/type-guards";
|
|
9397
9397
|
import { jsx as jsx217 } from "react/jsx-runtime";
|
|
9398
9398
|
var disabledStyle = css24`
|
|
@@ -9489,13 +9489,13 @@ import { createContext as createContext4, useMemo as useMemo7, useContext as use
|
|
|
9489
9489
|
import { isArray } from "@wistia/type-guards";
|
|
9490
9490
|
|
|
9491
9491
|
// src/components/FormGroup/FormGroup.tsx
|
|
9492
|
-
import styled25 from "styled-components";
|
|
9492
|
+
import { styled as styled25 } from "styled-components";
|
|
9493
9493
|
import { useRef as useRef7 } from "react";
|
|
9494
9494
|
import { isNonEmptyString as isNonEmptyString2, isNotNil as isNotNil16 } from "@wistia/type-guards";
|
|
9495
9495
|
|
|
9496
9496
|
// src/components/Stack/Stack.tsx
|
|
9497
9497
|
import { forwardRef as forwardRef10 } from "react";
|
|
9498
|
-
import styled24 from "styled-components";
|
|
9498
|
+
import { styled as styled24 } from "styled-components";
|
|
9499
9499
|
import { jsx as jsx219 } from "react/jsx-runtime";
|
|
9500
9500
|
var DEFAULT_ELEMENT4 = "div";
|
|
9501
9501
|
var StyledStack = styled24.div`
|
|
@@ -9584,7 +9584,7 @@ FormGroup.displayName = "FormGroup_UI";
|
|
|
9584
9584
|
|
|
9585
9585
|
// src/components/Form/Form.tsx
|
|
9586
9586
|
import { forwardRef as forwardRef11, useRef as useRef8, useMemo as useMemo6, createContext as createContext3, useState as useState11, useId } from "react";
|
|
9587
|
-
import styled26 from "styled-components";
|
|
9587
|
+
import { styled as styled26 } from "styled-components";
|
|
9588
9588
|
import { isNotUndefined as isNotUndefined6, isUndefined as isUndefined3 } from "@wistia/type-guards";
|
|
9589
9589
|
|
|
9590
9590
|
// src/components/Form/serializeFormData.tsx
|
|
@@ -9950,7 +9950,7 @@ ClickRegion.displayName = "ClickRegion_UI";
|
|
|
9950
9950
|
// src/components/Collapsible/Collapsible.tsx
|
|
9951
9951
|
import { Root as CollapsibleRoot } from "@radix-ui/react-collapsible";
|
|
9952
9952
|
import { isNotNil as isNotNil17 } from "@wistia/type-guards";
|
|
9953
|
-
import styled28 from "styled-components";
|
|
9953
|
+
import { styled as styled28 } from "styled-components";
|
|
9954
9954
|
import { jsx as jsx224 } from "react/jsx-runtime";
|
|
9955
9955
|
var StyledRoot = styled28(CollapsibleRoot)`
|
|
9956
9956
|
&[data-state='closed'] [data-wui-collapsible-content] {
|
|
@@ -9975,7 +9975,7 @@ Collapsible.displayName = "Collapsible_UI";
|
|
|
9975
9975
|
// src/components/Collapsible/CollapsibleTrigger.tsx
|
|
9976
9976
|
import { Children as Children4 } from "react";
|
|
9977
9977
|
import { Trigger } from "@radix-ui/react-collapsible";
|
|
9978
|
-
import styled29 from "styled-components";
|
|
9978
|
+
import { styled as styled29 } from "styled-components";
|
|
9979
9979
|
import { jsx as jsx225 } from "react/jsx-runtime";
|
|
9980
9980
|
var StyledTrigger = styled29(Trigger)`
|
|
9981
9981
|
[data-wui-collapsible-icon] {
|
|
@@ -10026,7 +10026,7 @@ var CollapsibleTriggerIcon = ({ type, ...props }) => {
|
|
|
10026
10026
|
CollapsibleTriggerIcon.displayName = "CollapsibleTriggerIcon_UI";
|
|
10027
10027
|
|
|
10028
10028
|
// src/components/Collapsible/CollapsibleContent.tsx
|
|
10029
|
-
import styled30 from "styled-components";
|
|
10029
|
+
import { styled as styled30 } from "styled-components";
|
|
10030
10030
|
import { Content } from "@radix-ui/react-collapsible";
|
|
10031
10031
|
import { isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
|
|
10032
10032
|
import { Fragment as Fragment6, jsx as jsx227, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
@@ -10052,7 +10052,7 @@ var CollapsibleContent = ({ clamp, children }) => {
|
|
|
10052
10052
|
|
|
10053
10053
|
// src/components/ColorPicker/ColorGrid.tsx
|
|
10054
10054
|
import { useCallback as useCallback10 } from "react";
|
|
10055
|
-
import styled32 from "styled-components";
|
|
10055
|
+
import { styled as styled32 } from "styled-components";
|
|
10056
10056
|
import { Root as RadioGroupRoot } from "@radix-ui/react-radio-group";
|
|
10057
10057
|
|
|
10058
10058
|
// src/components/ColorPicker/ColorPickerContext.tsx
|
|
@@ -10597,7 +10597,7 @@ var useColorPickerState = () => {
|
|
|
10597
10597
|
};
|
|
10598
10598
|
|
|
10599
10599
|
// src/components/Label/Label.tsx
|
|
10600
|
-
import styled31,
|
|
10600
|
+
import { styled as styled31, css as css27 } from "styled-components";
|
|
10601
10601
|
import { jsx as jsx229 } from "react/jsx-runtime";
|
|
10602
10602
|
var requiredStyle = css27`
|
|
10603
10603
|
&::after {
|
|
@@ -10698,12 +10698,12 @@ var ColorGrid = ({ children, label }) => {
|
|
|
10698
10698
|
ColorGrid.displayName = "ColorGrid_UI";
|
|
10699
10699
|
|
|
10700
10700
|
// src/components/ColorPicker/ColorGridOption.tsx
|
|
10701
|
-
import styled35 from "styled-components";
|
|
10701
|
+
import { styled as styled35 } from "styled-components";
|
|
10702
10702
|
import { Item as RadioGroupItem } from "@radix-ui/react-radio-group";
|
|
10703
10703
|
import { formatHex as formatHex3 } from "culori/fn";
|
|
10704
10704
|
|
|
10705
10705
|
// src/components/ColorPicker/ColorSwatch.tsx
|
|
10706
|
-
import styled33 from "styled-components";
|
|
10706
|
+
import { styled as styled33 } from "styled-components";
|
|
10707
10707
|
import { jsx as jsx231, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
10708
10708
|
var ColorSwatchDiv = styled33.div`
|
|
10709
10709
|
aspect-ratio: 1;
|
|
@@ -10767,7 +10767,7 @@ import {
|
|
|
10767
10767
|
Portal as TooltipPortal,
|
|
10768
10768
|
Arrow as TooltipArrow
|
|
10769
10769
|
} from "@radix-ui/react-tooltip";
|
|
10770
|
-
import styled34,
|
|
10770
|
+
import { styled as styled34, keyframes } from "styled-components";
|
|
10771
10771
|
import { jsx as jsx232, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
10772
10772
|
var hide = keyframes`
|
|
10773
10773
|
from {
|
|
@@ -10962,7 +10962,7 @@ ColorGridOption.displayName = "ColorGridOption_UI";
|
|
|
10962
10962
|
|
|
10963
10963
|
// src/components/ColorPicker/ColorList.tsx
|
|
10964
10964
|
import { useCallback as useCallback11 } from "react";
|
|
10965
|
-
import styled36 from "styled-components";
|
|
10965
|
+
import { styled as styled36 } from "styled-components";
|
|
10966
10966
|
import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
|
|
10967
10967
|
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
10968
10968
|
var Container3 = styled36(ToggleGroupRoot)`
|
|
@@ -10994,7 +10994,7 @@ var ColorList = ({ children }) => {
|
|
|
10994
10994
|
ColorList.displayName = "ColorList_UI";
|
|
10995
10995
|
|
|
10996
10996
|
// src/components/ColorPicker/ColorListGroup.tsx
|
|
10997
|
-
import styled37 from "styled-components";
|
|
10997
|
+
import { styled as styled37 } from "styled-components";
|
|
10998
10998
|
import { jsx as jsx235, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
10999
10999
|
var Container4 = styled37.div`
|
|
11000
11000
|
display: grid;
|
|
@@ -11024,7 +11024,7 @@ var ColorListGroup = ({ label, children }) => {
|
|
|
11024
11024
|
ColorListGroup.displayName = "ColorListGroup_UI";
|
|
11025
11025
|
|
|
11026
11026
|
// src/components/ColorPicker/ColorListOption.tsx
|
|
11027
|
-
import styled38 from "styled-components";
|
|
11027
|
+
import { styled as styled38 } from "styled-components";
|
|
11028
11028
|
import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
11029
11029
|
import { formatHex as formatHex4 } from "culori/fn";
|
|
11030
11030
|
|
|
@@ -11148,7 +11148,7 @@ ColorPicker.displayName = "ColorPicker_UI";
|
|
|
11148
11148
|
|
|
11149
11149
|
// src/components/ColorPicker/ColorPickerPopoverContent.tsx
|
|
11150
11150
|
import { Content as PopoverContent, Portal as PopoverPortal } from "@radix-ui/react-popover";
|
|
11151
|
-
import styled39 from "styled-components";
|
|
11151
|
+
import { styled as styled39 } from "styled-components";
|
|
11152
11152
|
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
11153
11153
|
var StyledPopoverContent = styled39(PopoverContent)`
|
|
11154
11154
|
background-color: var(--wui-color-bg-surface);
|
|
@@ -11177,7 +11177,7 @@ var ColorPickerPopoverContent = ({
|
|
|
11177
11177
|
ColorPickerPopoverContent.displayName = "ColorPickerPopoverContent_UI";
|
|
11178
11178
|
|
|
11179
11179
|
// src/components/ColorPicker/ColorPickerSection.tsx
|
|
11180
|
-
import styled40 from "styled-components";
|
|
11180
|
+
import { styled as styled40 } from "styled-components";
|
|
11181
11181
|
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
11182
11182
|
var Container6 = styled40.div`
|
|
11183
11183
|
padding: var(--wui-space-02);
|
|
@@ -11190,7 +11190,7 @@ ColorPickerSection.displayName = "ColorPickerSection_UI";
|
|
|
11190
11190
|
// src/components/ColorPicker/ColorPickerTrigger.tsx
|
|
11191
11191
|
import { forwardRef as forwardRef13 } from "react";
|
|
11192
11192
|
import { Trigger as PopoverTrigger } from "@radix-ui/react-popover";
|
|
11193
|
-
import styled41 from "styled-components";
|
|
11193
|
+
import { styled as styled41 } from "styled-components";
|
|
11194
11194
|
|
|
11195
11195
|
// src/components/ColorPicker/ValueSwatch.tsx
|
|
11196
11196
|
import { jsx as jsx241 } from "react/jsx-runtime";
|
|
@@ -11257,7 +11257,7 @@ var ColorPickerTrigger = forwardRef13(
|
|
|
11257
11257
|
ColorPickerTrigger.displayName = "ColorPickerTrigger_UI";
|
|
11258
11258
|
|
|
11259
11259
|
// src/components/ColorPicker/ContrastIndicator.tsx
|
|
11260
|
-
import styled42 from "styled-components";
|
|
11260
|
+
import { styled as styled42 } from "styled-components";
|
|
11261
11261
|
import { jsx as jsx244, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
11262
11262
|
var Container7 = styled42.div`
|
|
11263
11263
|
display: flex;
|
|
@@ -11317,7 +11317,7 @@ import { useCallback as useCallback12 } from "react";
|
|
|
11317
11317
|
|
|
11318
11318
|
// src/components/Switch/Switch.tsx
|
|
11319
11319
|
import { forwardRef as forwardRef14, useId as useId3 } from "react";
|
|
11320
|
-
import styled43,
|
|
11320
|
+
import { styled as styled43, css as css28 } from "styled-components";
|
|
11321
11321
|
import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
11322
11322
|
import { jsx as jsx245, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
11323
11323
|
var switchHeightMap = {
|
|
@@ -11528,7 +11528,7 @@ import { parseHex as parseHex2 } from "culori/fn";
|
|
|
11528
11528
|
|
|
11529
11529
|
// src/components/Input/Input.tsx
|
|
11530
11530
|
import { isValidElement as isValidElement2, forwardRef as forwardRef15, cloneElement as cloneElement4, useRef as useRef9 } from "react";
|
|
11531
|
-
import styled44,
|
|
11531
|
+
import { styled as styled44, css as css30 } from "styled-components";
|
|
11532
11532
|
import { isNil as isNil14, isNotNil as isNotNil18, isRecord as isRecord4 } from "@wistia/type-guards";
|
|
11533
11533
|
|
|
11534
11534
|
// src/css/inputCss.ts
|
|
@@ -11908,12 +11908,12 @@ import {
|
|
|
11908
11908
|
Track as SliderTrack,
|
|
11909
11909
|
Thumb as SliderThumb
|
|
11910
11910
|
} from "@radix-ui/react-slider";
|
|
11911
|
-
import styled46 from "styled-components";
|
|
11911
|
+
import { styled as styled46 } from "styled-components";
|
|
11912
11912
|
import { formatHex as formatHex6 } from "culori/fn";
|
|
11913
11913
|
|
|
11914
11914
|
// src/components/ColorPicker/HSVHueCanvas.tsx
|
|
11915
11915
|
import { useEffect as useEffect12, useRef as useRef11 } from "react";
|
|
11916
|
-
import styled45 from "styled-components";
|
|
11916
|
+
import { styled as styled45 } from "styled-components";
|
|
11917
11917
|
import { formatHex as formatHex5 } from "culori/fn";
|
|
11918
11918
|
import { jsx as jsx251 } from "react/jsx-runtime";
|
|
11919
11919
|
var Canvas = styled45.canvas`
|
|
@@ -12044,11 +12044,11 @@ HueSlider.displayName = "HueSlider_UI";
|
|
|
12044
12044
|
|
|
12045
12045
|
// src/components/ColorPicker/SaturationAndValuePicker.tsx
|
|
12046
12046
|
import { useCallback as useCallback15, useEffect as useEffect14, useLayoutEffect as useLayoutEffect4, useMemo as useMemo10, useRef as useRef13, useState as useState14 } from "react";
|
|
12047
|
-
import styled48 from "styled-components";
|
|
12047
|
+
import { styled as styled48 } from "styled-components";
|
|
12048
12048
|
|
|
12049
12049
|
// src/components/ColorPicker/HSVSaturationValueCanvas.tsx
|
|
12050
12050
|
import { useEffect as useEffect13, useRef as useRef12 } from "react";
|
|
12051
|
-
import styled47 from "styled-components";
|
|
12051
|
+
import { styled as styled47 } from "styled-components";
|
|
12052
12052
|
|
|
12053
12053
|
// src/components/ColorPicker/canvas-utils.ts
|
|
12054
12054
|
var drawSmoothCurve = (context, points) => {
|
|
@@ -12427,12 +12427,12 @@ import {
|
|
|
12427
12427
|
isValidElement as isValidElement3
|
|
12428
12428
|
} from "react";
|
|
12429
12429
|
import { matchSorter } from "match-sorter";
|
|
12430
|
-
import styled50 from "styled-components";
|
|
12430
|
+
import { styled as styled50 } from "styled-components";
|
|
12431
12431
|
import { isArray as isArray2, isString as isString3 } from "@wistia/type-guards";
|
|
12432
12432
|
|
|
12433
12433
|
// src/components/Tag/Tag.tsx
|
|
12434
12434
|
import { forwardRef as forwardRef16 } from "react";
|
|
12435
|
-
import styled49 from "styled-components";
|
|
12435
|
+
import { styled as styled49 } from "styled-components";
|
|
12436
12436
|
import { isNil as isNil15, isNotNil as isNotNil19, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
|
|
12437
12437
|
import { Fragment as Fragment7, jsx as jsx255, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
12438
12438
|
var TagLabel = styled49.a`
|
|
@@ -12888,7 +12888,7 @@ import {
|
|
|
12888
12888
|
} from "@radix-ui/react-dropdown-menu";
|
|
12889
12889
|
import { isNotNil as isNotNil20, isNotUndefined as isNotUndefined9 } from "@wistia/type-guards";
|
|
12890
12890
|
import { forwardRef as forwardRef17, useMemo as useMemo12 } from "react";
|
|
12891
|
-
import styled51,
|
|
12891
|
+
import { styled as styled51, css as css32, keyframes as keyframes2 } from "styled-components";
|
|
12892
12892
|
|
|
12893
12893
|
// src/components/Menu/MenuContext.tsx
|
|
12894
12894
|
import { createContext as createContext6, useContext as useContext5 } from "react";
|
|
@@ -13051,7 +13051,7 @@ Menu.displayName = "Menu_UI";
|
|
|
13051
13051
|
Menu.displayName = "Menu_UI";
|
|
13052
13052
|
|
|
13053
13053
|
// src/components/Menu/MenuLabel.tsx
|
|
13054
|
-
import styled52 from "styled-components";
|
|
13054
|
+
import { styled as styled52 } from "styled-components";
|
|
13055
13055
|
import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
|
|
13056
13056
|
import { jsx as jsx258 } from "react/jsx-runtime";
|
|
13057
13057
|
var StyledMenuLabel = styled52(DropdownMenuLabel)`
|
|
@@ -13079,7 +13079,7 @@ MenuLabel.displayName = "MenuLabel_UI";
|
|
|
13079
13079
|
|
|
13080
13080
|
// src/components/Menu/SubMenu.tsx
|
|
13081
13081
|
import { useState as useState16 } from "react";
|
|
13082
|
-
import styled55 from "styled-components";
|
|
13082
|
+
import { styled as styled55 } from "styled-components";
|
|
13083
13083
|
import {
|
|
13084
13084
|
DropdownMenuPortal as DropdownMenuPortal2,
|
|
13085
13085
|
DropdownMenuSub,
|
|
@@ -13092,7 +13092,7 @@ import { isNotNil as isNotNil22 } from "@wistia/type-guards";
|
|
|
13092
13092
|
|
|
13093
13093
|
// src/components/Menu/MenuItemButton.tsx
|
|
13094
13094
|
import { forwardRef as forwardRef18 } from "react";
|
|
13095
|
-
import styled53 from "styled-components";
|
|
13095
|
+
import { styled as styled53 } from "styled-components";
|
|
13096
13096
|
import { isNotNil as isNotNil21, isNotUndefined as isNotUndefined10 } from "@wistia/type-guards";
|
|
13097
13097
|
import { jsx as jsx259, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
13098
13098
|
var StyledButton3 = styled53(Button)`
|
|
@@ -13212,7 +13212,7 @@ var MenuItemButton = forwardRef18(({ children, appearance, command, icon, ...pro
|
|
|
13212
13212
|
MenuItemButton.displayName = "MenuItemButton_UI";
|
|
13213
13213
|
|
|
13214
13214
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
13215
|
-
import styled54 from "styled-components";
|
|
13215
|
+
import { styled as styled54 } from "styled-components";
|
|
13216
13216
|
import { jsx as jsx260 } from "react/jsx-runtime";
|
|
13217
13217
|
var StyledMenuItemLabel = styled54.span``;
|
|
13218
13218
|
var StyledMenuItemDescription = styled54(Text)``;
|
|
@@ -13621,7 +13621,7 @@ var ContextMenu = ({
|
|
|
13621
13621
|
|
|
13622
13622
|
// src/components/DataCards/DataCard.tsx
|
|
13623
13623
|
import { useRef as useRef15 } from "react";
|
|
13624
|
-
import styled56,
|
|
13624
|
+
import { styled as styled56, keyframes as keyframes3 } from "styled-components";
|
|
13625
13625
|
import { isNotNil as isNotNil25 } from "@wistia/type-guards";
|
|
13626
13626
|
import { jsx as jsx268, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
13627
13627
|
var StyledDataCard = styled56.div`
|
|
@@ -13820,7 +13820,7 @@ var DataCard = (props) => {
|
|
|
13820
13820
|
DataCard.displayName = "DataCard_UI";
|
|
13821
13821
|
|
|
13822
13822
|
// src/components/DataCards/DataCards.tsx
|
|
13823
|
-
import styled57 from "styled-components";
|
|
13823
|
+
import { styled as styled57 } from "styled-components";
|
|
13824
13824
|
import { jsx as jsx269 } from "react/jsx-runtime";
|
|
13825
13825
|
var StyledDataCards = styled57(Box)`
|
|
13826
13826
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -13855,7 +13855,7 @@ var DataCards = ({
|
|
|
13855
13855
|
DataCards.displayName = "DataCards_UI";
|
|
13856
13856
|
|
|
13857
13857
|
// src/components/DataCards/DataCardTrend.tsx
|
|
13858
|
-
import styled58 from "styled-components";
|
|
13858
|
+
import { styled as styled58 } from "styled-components";
|
|
13859
13859
|
import { jsx as jsx270, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
13860
13860
|
var StyledDataCardTrend = styled58.div`
|
|
13861
13861
|
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
@@ -13893,7 +13893,7 @@ var DataCardTrend = ({
|
|
|
13893
13893
|
};
|
|
13894
13894
|
|
|
13895
13895
|
// src/components/DataCards/DataCardHoverArrow.tsx
|
|
13896
|
-
import styled59 from "styled-components";
|
|
13896
|
+
import { styled as styled59 } from "styled-components";
|
|
13897
13897
|
import { jsx as jsx271 } from "react/jsx-runtime";
|
|
13898
13898
|
var StyledIconContainer = styled59.div`
|
|
13899
13899
|
display: flex;
|
|
@@ -13911,7 +13911,7 @@ var DataCardHoverArrow = () => /* @__PURE__ */ jsx271(StyledIconContainer, { chi
|
|
|
13911
13911
|
DataCardHoverArrow.displayName = "DataCardHoverArrow_UI";
|
|
13912
13912
|
|
|
13913
13913
|
// src/components/DataList/DataList.tsx
|
|
13914
|
-
import styled60 from "styled-components";
|
|
13914
|
+
import { styled as styled60 } from "styled-components";
|
|
13915
13915
|
import { jsx as jsx272 } from "react/jsx-runtime";
|
|
13916
13916
|
var StyledDataList = styled60.dl`
|
|
13917
13917
|
display: grid;
|
|
@@ -13992,7 +13992,7 @@ var DataListItemValue = (props) => {
|
|
|
13992
13992
|
DataListItemValue.displayName = "DataListItemValue_UI";
|
|
13993
13993
|
|
|
13994
13994
|
// src/components/Divider/Divider.tsx
|
|
13995
|
-
import styled61,
|
|
13995
|
+
import { styled as styled61, css as css33 } from "styled-components";
|
|
13996
13996
|
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
13997
13997
|
var horizontalBorderCss = css33`
|
|
13998
13998
|
border-top-color: var(--wui-color-border);
|
|
@@ -14033,7 +14033,7 @@ var Divider = ({ orientation = "horizontal", ...props }) => {
|
|
|
14033
14033
|
Divider.displayName = "Divider_UI";
|
|
14034
14034
|
|
|
14035
14035
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
14036
|
-
import styled62,
|
|
14036
|
+
import { styled as styled62, css as css34 } from "styled-components";
|
|
14037
14037
|
import { useState as useState18, useRef as useRef16 } from "react";
|
|
14038
14038
|
import { Fragment as Fragment8, jsx as jsx276, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
14039
14039
|
var StyledInput = styled62(Input)`
|
|
@@ -14170,18 +14170,52 @@ var EditableHeading = ({
|
|
|
14170
14170
|
|
|
14171
14171
|
// src/components/EditableText/EditableTextDisplay.tsx
|
|
14172
14172
|
import { useContext as useContext6, useRef as useRef17, forwardRef as forwardRef21 } from "react";
|
|
14173
|
-
import styled64,
|
|
14173
|
+
import { styled as styled64, css as css35 } from "styled-components";
|
|
14174
14174
|
import { isNotNil as isNotNil26 } from "@wistia/type-guards";
|
|
14175
14175
|
|
|
14176
14176
|
// src/components/EditableText/EditableTextRoot.tsx
|
|
14177
14177
|
import { createContext as createContext7, useMemo as useMemo13, useState as useState19, useCallback as useCallback16, useId as useId4 } from "react";
|
|
14178
14178
|
import { isNonEmptyString as isNonEmptyString6 } from "@wistia/type-guards";
|
|
14179
|
-
import styled63 from "styled-components";
|
|
14179
|
+
import { styled as styled63 } from "styled-components";
|
|
14180
14180
|
import { jsx as jsx277 } from "react/jsx-runtime";
|
|
14181
|
+
var LARGE_PADDING = "var(--wui-space-02)";
|
|
14182
|
+
var SMALL_PADDING = "var(--wui-space-01)";
|
|
14183
|
+
var getPaddingForVariant = (variant) => {
|
|
14184
|
+
const largePaddingVariants = [
|
|
14185
|
+
"hero",
|
|
14186
|
+
"heading1",
|
|
14187
|
+
"heading2",
|
|
14188
|
+
"heading3",
|
|
14189
|
+
"body1",
|
|
14190
|
+
"label1",
|
|
14191
|
+
"body1Mono"
|
|
14192
|
+
];
|
|
14193
|
+
const smallPaddingVariants = [
|
|
14194
|
+
"heading4",
|
|
14195
|
+
"heading5",
|
|
14196
|
+
"heading6",
|
|
14197
|
+
"body2",
|
|
14198
|
+
"body3",
|
|
14199
|
+
"body4",
|
|
14200
|
+
"label2",
|
|
14201
|
+
"label3",
|
|
14202
|
+
"label4",
|
|
14203
|
+
"body2Mono",
|
|
14204
|
+
"body3Mono",
|
|
14205
|
+
"body4Mono"
|
|
14206
|
+
];
|
|
14207
|
+
if (largePaddingVariants.includes(variant)) {
|
|
14208
|
+
return LARGE_PADDING;
|
|
14209
|
+
}
|
|
14210
|
+
if (smallPaddingVariants.includes(variant)) {
|
|
14211
|
+
return SMALL_PADDING;
|
|
14212
|
+
}
|
|
14213
|
+
return SMALL_PADDING;
|
|
14214
|
+
};
|
|
14181
14215
|
var StyledEditableTextRoot = styled63.div`
|
|
14182
14216
|
display: contents;
|
|
14183
14217
|
|
|
14184
|
-
--wui-editable-text-padding:
|
|
14218
|
+
--wui-editable-text-padding: ${({ $typographicVariant }) => getPaddingForVariant($typographicVariant)};
|
|
14185
14219
|
--wui-editable-text-border-radius: var(--wui-border-radius-01);
|
|
14186
14220
|
`;
|
|
14187
14221
|
var EditableTextContext = createContext7(null);
|
|
@@ -14279,6 +14313,7 @@ var EditableTextRoot = ({
|
|
|
14279
14313
|
return /* @__PURE__ */ jsx277(
|
|
14280
14314
|
StyledEditableTextRoot,
|
|
14281
14315
|
{
|
|
14316
|
+
$typographicVariant: typographicVariant,
|
|
14282
14317
|
"data-testid": "editable-text-root",
|
|
14283
14318
|
"data-wui-editable-text-root": true,
|
|
14284
14319
|
"data-wui-editable-text-state": getState(),
|
|
@@ -14391,7 +14426,7 @@ var EditableTextDisplay = makePolymorphic(
|
|
|
14391
14426
|
|
|
14392
14427
|
// src/components/EditableText/EditableTextInput.tsx
|
|
14393
14428
|
import { useContext as useContext7, useEffect as useEffect17, useRef as useRef18 } from "react";
|
|
14394
|
-
import styled65 from "styled-components";
|
|
14429
|
+
import { styled as styled65 } from "styled-components";
|
|
14395
14430
|
import { isNotNil as isNotNil27 } from "@wistia/type-guards";
|
|
14396
14431
|
import { jsx as jsx279 } from "react/jsx-runtime";
|
|
14397
14432
|
var StyledInput2 = styled65(Input)`
|
|
@@ -14696,7 +14731,7 @@ var FormErrorSummary = ({ description }) => {
|
|
|
14696
14731
|
|
|
14697
14732
|
// src/components/FormField/FormField.tsx
|
|
14698
14733
|
import { Children as Children10, cloneElement as cloneElement8, useContext as useContext13 } from "react";
|
|
14699
|
-
import styled66 from "styled-components";
|
|
14734
|
+
import { styled as styled66 } from "styled-components";
|
|
14700
14735
|
import { isArray as isArray4, isNotNil as isNotNil28, isNotUndefined as isNotUndefined12, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
14701
14736
|
import { Fragment as Fragment9, jsx as jsx283, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
14702
14737
|
var StyledFormField = styled66.div`
|
|
@@ -14892,7 +14927,7 @@ RadioGroup.displayName = "RadioGroup_UI";
|
|
|
14892
14927
|
|
|
14893
14928
|
// src/components/Grid/Grid.tsx
|
|
14894
14929
|
import { forwardRef as forwardRef22 } from "react";
|
|
14895
|
-
import styled67,
|
|
14930
|
+
import { styled as styled67, css as css36 } from "styled-components";
|
|
14896
14931
|
import { isRecord as isRecord5 } from "@wistia/type-guards";
|
|
14897
14932
|
import { jsx as jsx285 } from "react/jsx-runtime";
|
|
14898
14933
|
var DEFAULT_ELEMENT5 = "div";
|
|
@@ -14966,7 +15001,7 @@ GridComponent.displayName = "Grid_UI";
|
|
|
14966
15001
|
var Grid = makePolymorphic(GridComponent);
|
|
14967
15002
|
|
|
14968
15003
|
// src/components/InputClickToCopy/InputClickToCopy.tsx
|
|
14969
|
-
import styled68 from "styled-components";
|
|
15004
|
+
import { styled as styled68 } from "styled-components";
|
|
14970
15005
|
import { forwardRef as forwardRef23, useEffect as useEffect18, useState as useState21 } from "react";
|
|
14971
15006
|
import { isFunction as isFunction3 } from "@wistia/type-guards";
|
|
14972
15007
|
import { jsx as jsx286 } from "react/jsx-runtime";
|
|
@@ -15036,7 +15071,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
15036
15071
|
InputClickToCopy.displayName = "InputClickToCopy_UI";
|
|
15037
15072
|
|
|
15038
15073
|
// src/components/InputPassword/InputPassword.tsx
|
|
15039
|
-
import styled69 from "styled-components";
|
|
15074
|
+
import { styled as styled69 } from "styled-components";
|
|
15040
15075
|
import { forwardRef as forwardRef24, useState as useState22 } from "react";
|
|
15041
15076
|
import { isFunction as isFunction4 } from "@wistia/type-guards";
|
|
15042
15077
|
import { jsx as jsx287 } from "react/jsx-runtime";
|
|
@@ -15083,7 +15118,7 @@ var InputPassword = forwardRef24(
|
|
|
15083
15118
|
InputPassword.displayName = "InputPassword_UI";
|
|
15084
15119
|
|
|
15085
15120
|
// src/components/KeyboardShortcut/KeyboardShortcut.tsx
|
|
15086
|
-
import styled70 from "styled-components";
|
|
15121
|
+
import { styled as styled70 } from "styled-components";
|
|
15087
15122
|
import { isNotNil as isNotNil29 } from "@wistia/type-guards";
|
|
15088
15123
|
import { jsx as jsx288, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
15089
15124
|
var StyledKeyboardShortcut = styled70.div`
|
|
@@ -15193,10 +15228,10 @@ KeyboardShortcut.displayName = "KeyboardShortcut_UI";
|
|
|
15193
15228
|
|
|
15194
15229
|
// src/components/List/List.tsx
|
|
15195
15230
|
import { isNotNil as isNotNil30 } from "@wistia/type-guards";
|
|
15196
|
-
import styled72,
|
|
15231
|
+
import { styled as styled72, css as css37 } from "styled-components";
|
|
15197
15232
|
|
|
15198
15233
|
// src/components/List/ListItem.tsx
|
|
15199
|
-
import styled71 from "styled-components";
|
|
15234
|
+
import { styled as styled71 } from "styled-components";
|
|
15200
15235
|
import { isNil as isNil17 } from "@wistia/type-guards";
|
|
15201
15236
|
import { jsx as jsx289 } from "react/jsx-runtime";
|
|
15202
15237
|
var ListItemComponent = styled71.li`
|
|
@@ -15350,7 +15385,7 @@ var List = ({
|
|
|
15350
15385
|
List.displayName = "List_UI";
|
|
15351
15386
|
|
|
15352
15387
|
// src/components/Mark/Mark.tsx
|
|
15353
|
-
import styled73 from "styled-components";
|
|
15388
|
+
import { styled as styled73 } from "styled-components";
|
|
15354
15389
|
import { jsx as jsx291 } from "react/jsx-runtime";
|
|
15355
15390
|
var StyledMark = styled73.mark`
|
|
15356
15391
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -15372,16 +15407,16 @@ Mark.displayName = "Mark_UI";
|
|
|
15372
15407
|
|
|
15373
15408
|
// src/components/Modal/Modal.tsx
|
|
15374
15409
|
import { forwardRef as forwardRef26 } from "react";
|
|
15375
|
-
import styled78 from "styled-components";
|
|
15410
|
+
import { styled as styled78 } from "styled-components";
|
|
15376
15411
|
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
15377
15412
|
import { isNotNil as isNotNil32 } from "@wistia/type-guards";
|
|
15378
15413
|
|
|
15379
15414
|
// src/components/Modal/ModalHeader.tsx
|
|
15380
|
-
import styled75 from "styled-components";
|
|
15415
|
+
import { styled as styled75 } from "styled-components";
|
|
15381
15416
|
import { Title as DialogTitle } from "@radix-ui/react-dialog";
|
|
15382
15417
|
|
|
15383
15418
|
// src/components/Modal/ModalCloseButton.tsx
|
|
15384
|
-
import styled74 from "styled-components";
|
|
15419
|
+
import { styled as styled74 } from "styled-components";
|
|
15385
15420
|
import { Close as DialogClose } from "@radix-ui/react-dialog";
|
|
15386
15421
|
import { jsx as jsx292 } from "react/jsx-runtime";
|
|
15387
15422
|
var CloseButton = styled74(DialogClose)`
|
|
@@ -15448,7 +15483,7 @@ var ModalHeader = ({
|
|
|
15448
15483
|
|
|
15449
15484
|
// src/components/Modal/ModalContent.tsx
|
|
15450
15485
|
import { forwardRef as forwardRef25 } from "react";
|
|
15451
|
-
import styled76,
|
|
15486
|
+
import { styled as styled76, css as css38, keyframes as keyframes4 } from "styled-components";
|
|
15452
15487
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
15453
15488
|
|
|
15454
15489
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -15616,7 +15651,7 @@ var ModalContent = forwardRef25(
|
|
|
15616
15651
|
|
|
15617
15652
|
// src/components/Modal/ModalOverlay.tsx
|
|
15618
15653
|
import { DialogOverlay } from "@radix-ui/react-dialog";
|
|
15619
|
-
import styled77,
|
|
15654
|
+
import { styled as styled77, keyframes as keyframes5 } from "styled-components";
|
|
15620
15655
|
var backdropShow = keyframes5`
|
|
15621
15656
|
from {
|
|
15622
15657
|
opacity: 0;
|
|
@@ -15750,7 +15785,7 @@ ModalCallout.displayName = "ModalCallout_UI";
|
|
|
15750
15785
|
|
|
15751
15786
|
// src/components/Popover/Popover.tsx
|
|
15752
15787
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
15753
|
-
import styled80,
|
|
15788
|
+
import { styled as styled80, css as css40 } from "styled-components";
|
|
15754
15789
|
|
|
15755
15790
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
15756
15791
|
import { isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
@@ -15760,7 +15795,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
15760
15795
|
|
|
15761
15796
|
// src/components/Popover/PopoverArrow.tsx
|
|
15762
15797
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
15763
|
-
import styled79,
|
|
15798
|
+
import { styled as styled79, css as css39, keyframes as keyframes6 } from "styled-components";
|
|
15764
15799
|
import { jsx as jsx297, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
15765
15800
|
var StyledPath = styled79.path`
|
|
15766
15801
|
fill: var(--wui-color-border-secondary);
|
|
@@ -15909,7 +15944,7 @@ var Popover = ({
|
|
|
15909
15944
|
Popover.displayName = "Popover_UI";
|
|
15910
15945
|
|
|
15911
15946
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
15912
|
-
import styled81 from "styled-components";
|
|
15947
|
+
import { styled as styled81 } from "styled-components";
|
|
15913
15948
|
import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
|
|
15914
15949
|
import { isNotNil as isNotNil34 } from "@wistia/type-guards";
|
|
15915
15950
|
import { jsx as jsx299, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
@@ -15993,7 +16028,7 @@ ProgressBar.displayName = "ProgressBar_UI";
|
|
|
15993
16028
|
// src/components/Radio/Radio.tsx
|
|
15994
16029
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
|
|
15995
16030
|
import { forwardRef as forwardRef27, useId as useId5 } from "react";
|
|
15996
|
-
import styled82,
|
|
16031
|
+
import { styled as styled82, css as css41 } from "styled-components";
|
|
15997
16032
|
import { jsx as jsx300, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
15998
16033
|
var sizeSmall2 = css41`
|
|
15999
16034
|
--wui-radio-size: 14px;
|
|
@@ -16144,7 +16179,7 @@ import { forwardRef as forwardRef29 } from "react";
|
|
|
16144
16179
|
|
|
16145
16180
|
// src/components/RadioCard/RadioCardRoot.tsx
|
|
16146
16181
|
import { forwardRef as forwardRef28, useId as useId6 } from "react";
|
|
16147
|
-
import styled83,
|
|
16182
|
+
import { styled as styled83, css as css42 } from "styled-components";
|
|
16148
16183
|
import { isNonEmptyString as isNonEmptyString8, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
16149
16184
|
import { jsx as jsx301, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
16150
16185
|
var checkedStyles = css42`
|
|
@@ -16305,11 +16340,11 @@ var RadioCardRoot = forwardRef28(
|
|
|
16305
16340
|
RadioCardRoot.displayName = "RadioCardRoot_UI";
|
|
16306
16341
|
|
|
16307
16342
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
16308
|
-
import styled85 from "styled-components";
|
|
16343
|
+
import { styled as styled85 } from "styled-components";
|
|
16309
16344
|
import { isNotNil as isNotNil35 } from "@wistia/type-guards";
|
|
16310
16345
|
|
|
16311
16346
|
// src/components/RadioCard/RadioCardIndicator.tsx
|
|
16312
|
-
import styled84 from "styled-components";
|
|
16347
|
+
import { styled as styled84 } from "styled-components";
|
|
16313
16348
|
var RadioCardIndicator = styled84.div`
|
|
16314
16349
|
--wui-radio-card-indicator-size: 14px;
|
|
16315
16350
|
--wui-radio-card-indicator-background-color: var(--wui-color-bg-surface);
|
|
@@ -16407,7 +16442,7 @@ var RadioCardDefaultLayout = ({
|
|
|
16407
16442
|
RadioCardDefaultLayout.displayName = "RadioCardDefaultLayout_UI";
|
|
16408
16443
|
|
|
16409
16444
|
// src/components/RadioCard/RadioCardChildrenContainer.tsx
|
|
16410
|
-
import styled86 from "styled-components";
|
|
16445
|
+
import { styled as styled86 } from "styled-components";
|
|
16411
16446
|
var RadioCardChildrenContainer = styled86.div`
|
|
16412
16447
|
flex: 1 1 auto;
|
|
16413
16448
|
`;
|
|
@@ -16467,7 +16502,7 @@ RadioCardImage.displayName = "RadioCardImage_UI";
|
|
|
16467
16502
|
|
|
16468
16503
|
// src/components/ScrollArea/ScrollArea.tsx
|
|
16469
16504
|
import { forwardRef as forwardRef31, useCallback as useCallback18, useEffect as useEffect20, useMemo as useMemo15, useRef as useRef21, useState as useState23 } from "react";
|
|
16470
|
-
import styled87 from "styled-components";
|
|
16505
|
+
import { styled as styled87 } from "styled-components";
|
|
16471
16506
|
import { throttle } from "throttle-debounce";
|
|
16472
16507
|
import { jsx as jsx305, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
16473
16508
|
var SHADOW_SIZE_PX = 8;
|
|
@@ -16571,7 +16606,7 @@ ScrollArea.displayName = "ScrollArea_UI";
|
|
|
16571
16606
|
|
|
16572
16607
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
16573
16608
|
import { forwardRef as forwardRef32 } from "react";
|
|
16574
|
-
import styled89,
|
|
16609
|
+
import { styled as styled89, css as css44 } from "styled-components";
|
|
16575
16610
|
import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
|
|
16576
16611
|
import { isNil as isNil18 } from "@wistia/type-guards";
|
|
16577
16612
|
|
|
@@ -16609,7 +16644,7 @@ var useSelectedItemStyle = () => {
|
|
|
16609
16644
|
};
|
|
16610
16645
|
|
|
16611
16646
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
16612
|
-
import styled88,
|
|
16647
|
+
import { styled as styled88, css as css43 } from "styled-components";
|
|
16613
16648
|
import { isUndefined as isUndefined5 } from "@wistia/type-guards";
|
|
16614
16649
|
|
|
16615
16650
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
@@ -16708,7 +16743,7 @@ SegmentedControl.displayName = "SegmentedControl_UI";
|
|
|
16708
16743
|
|
|
16709
16744
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
16710
16745
|
import { forwardRef as forwardRef33, useEffect as useEffect21, useRef as useRef22 } from "react";
|
|
16711
|
-
import styled90,
|
|
16746
|
+
import { styled as styled90, css as css45 } from "styled-components";
|
|
16712
16747
|
import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
|
|
16713
16748
|
import { isNotNil as isNotNil36 } from "@wistia/type-guards";
|
|
16714
16749
|
import { jsxs as jsxs60 } from "react/jsx-runtime";
|
|
@@ -16853,7 +16888,7 @@ import {
|
|
|
16853
16888
|
ScrollDownButton
|
|
16854
16889
|
} from "@radix-ui/react-select";
|
|
16855
16890
|
import { forwardRef as forwardRef34 } from "react";
|
|
16856
|
-
import styled91,
|
|
16891
|
+
import { styled as styled91, css as css46 } from "styled-components";
|
|
16857
16892
|
import { jsx as jsx309, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
16858
16893
|
var StyledTrigger2 = styled91(Trigger3)`
|
|
16859
16894
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -17000,7 +17035,7 @@ Select.displayName = "Select_UI";
|
|
|
17000
17035
|
// src/components/Select/SelectOption.tsx
|
|
17001
17036
|
import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
17002
17037
|
import { forwardRef as forwardRef35 } from "react";
|
|
17003
|
-
import styled92 from "styled-components";
|
|
17038
|
+
import { styled as styled92 } from "styled-components";
|
|
17004
17039
|
import { isNotNil as isNotNil37 } from "@wistia/type-guards";
|
|
17005
17040
|
import { jsx as jsx310, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
17006
17041
|
var StyledItem = styled92(Item)`
|
|
@@ -17058,7 +17093,7 @@ SelectOption.displayName = "SelectOption_UI";
|
|
|
17058
17093
|
|
|
17059
17094
|
// src/components/Select/SelectOptionGroup.tsx
|
|
17060
17095
|
import { Group, Label as Label3 } from "@radix-ui/react-select";
|
|
17061
|
-
import styled93 from "styled-components";
|
|
17096
|
+
import { styled as styled93 } from "styled-components";
|
|
17062
17097
|
import { jsx as jsx311, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
17063
17098
|
var StyledLabel4 = styled93(Label3)`
|
|
17064
17099
|
padding: var(--wui-select-option-padding);
|
|
@@ -17084,7 +17119,7 @@ import {
|
|
|
17084
17119
|
Range as RadixSliderRange,
|
|
17085
17120
|
Thumb as RadixSliderThumb
|
|
17086
17121
|
} from "@radix-ui/react-slider";
|
|
17087
|
-
import styled94 from "styled-components";
|
|
17122
|
+
import { styled as styled94 } from "styled-components";
|
|
17088
17123
|
import { isNonEmptyString as isNonEmptyString9 } from "@wistia/type-guards";
|
|
17089
17124
|
import { jsx as jsx312, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
17090
17125
|
var SliderContainer = styled94.div`
|
|
@@ -17210,7 +17245,7 @@ var Slider = ({
|
|
|
17210
17245
|
Slider.displayName = "Slider_UI";
|
|
17211
17246
|
|
|
17212
17247
|
// src/components/Table/Table.tsx
|
|
17213
|
-
import styled95,
|
|
17248
|
+
import { styled as styled95, css as css47 } from "styled-components";
|
|
17214
17249
|
import { jsx as jsx313 } from "react/jsx-runtime";
|
|
17215
17250
|
var StyledTable = styled95.table`
|
|
17216
17251
|
width: 100%;
|
|
@@ -17255,7 +17290,7 @@ var Table = ({
|
|
|
17255
17290
|
|
|
17256
17291
|
// src/components/Table/TableBody.tsx
|
|
17257
17292
|
import "react";
|
|
17258
|
-
import styled96 from "styled-components";
|
|
17293
|
+
import { styled as styled96 } from "styled-components";
|
|
17259
17294
|
|
|
17260
17295
|
// src/components/Table/TableSectionContext.ts
|
|
17261
17296
|
import { createContext as createContext11 } from "react";
|
|
@@ -17270,7 +17305,7 @@ var TableBody = ({ children, ...props }) => {
|
|
|
17270
17305
|
|
|
17271
17306
|
// src/components/Table/TableCell.tsx
|
|
17272
17307
|
import { useContext as useContext17 } from "react";
|
|
17273
|
-
import styled97,
|
|
17308
|
+
import { styled as styled97, css as css48 } from "styled-components";
|
|
17274
17309
|
import { jsx as jsx315 } from "react/jsx-runtime";
|
|
17275
17310
|
var sharedStyles = css48`
|
|
17276
17311
|
color: var(--wui-color-text);
|
|
@@ -17299,7 +17334,7 @@ var TableCell = ({ children, ...props }) => {
|
|
|
17299
17334
|
|
|
17300
17335
|
// src/components/Table/TableFoot.tsx
|
|
17301
17336
|
import "react";
|
|
17302
|
-
import styled98 from "styled-components";
|
|
17337
|
+
import { styled as styled98 } from "styled-components";
|
|
17303
17338
|
import { jsx as jsx316 } from "react/jsx-runtime";
|
|
17304
17339
|
var StyledTableFoot = styled98.tfoot``;
|
|
17305
17340
|
var TableFoot = ({ children, ...props }) => {
|
|
@@ -17308,7 +17343,7 @@ var TableFoot = ({ children, ...props }) => {
|
|
|
17308
17343
|
|
|
17309
17344
|
// src/components/Table/TableHead.tsx
|
|
17310
17345
|
import "react";
|
|
17311
|
-
import styled99 from "styled-components";
|
|
17346
|
+
import { styled as styled99 } from "styled-components";
|
|
17312
17347
|
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
17313
17348
|
var StyledThead = styled99.thead``;
|
|
17314
17349
|
var TableHead = ({ children, ...props }) => {
|
|
@@ -17316,7 +17351,7 @@ var TableHead = ({ children, ...props }) => {
|
|
|
17316
17351
|
};
|
|
17317
17352
|
|
|
17318
17353
|
// src/components/Table/TableRow.tsx
|
|
17319
|
-
import styled100 from "styled-components";
|
|
17354
|
+
import { styled as styled100 } from "styled-components";
|
|
17320
17355
|
import { jsx as jsx318 } from "react/jsx-runtime";
|
|
17321
17356
|
var StyledTableRow = styled100.tr``;
|
|
17322
17357
|
var TableRow = ({ children, ...props }) => {
|
|
@@ -17383,13 +17418,13 @@ TabsContent.displayName = "TabsContent_UI";
|
|
|
17383
17418
|
|
|
17384
17419
|
// src/components/Tabs/TabsList.tsx
|
|
17385
17420
|
import { List as RadixTabList } from "@radix-ui/react-tabs";
|
|
17386
|
-
import styled102 from "styled-components";
|
|
17421
|
+
import { styled as styled102 } from "styled-components";
|
|
17387
17422
|
|
|
17388
17423
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
17389
17424
|
import { isUndefined as isUndefined6 } from "@wistia/type-guards";
|
|
17390
17425
|
|
|
17391
17426
|
// src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
|
|
17392
|
-
import styled101 from "styled-components";
|
|
17427
|
+
import { styled as styled101 } from "styled-components";
|
|
17393
17428
|
var TabsSelectedItemIndicatorDiv = styled101(SelectedItemIndicatorDiv)`
|
|
17394
17429
|
&:has(~ button[role='tab']:focus-visible) {
|
|
17395
17430
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
@@ -17438,7 +17473,7 @@ import { forwardRef as forwardRef36, useEffect as useEffect22, useRef as useRef2
|
|
|
17438
17473
|
import { isNotNil as isNotNil39 } from "@wistia/type-guards";
|
|
17439
17474
|
|
|
17440
17475
|
// src/components/Tabs/StyledRadixTabsTrigger.tsx
|
|
17441
|
-
import styled103 from "styled-components";
|
|
17476
|
+
import { styled as styled103 } from "styled-components";
|
|
17442
17477
|
import { Trigger as RadixTabsTrigger } from "@radix-ui/react-tabs";
|
|
17443
17478
|
var StyledRadixTabsTrigger = styled103(RadixTabsTrigger)`
|
|
17444
17479
|
${segmentedControlItemStyles}
|
|
@@ -17501,7 +17536,7 @@ var TabsTrigger = forwardRef36(
|
|
|
17501
17536
|
TabsTrigger.displayName = "TabsTrigger_UI";
|
|
17502
17537
|
|
|
17503
17538
|
// src/components/Thumbnail/ThumbnailBadge.tsx
|
|
17504
|
-
import styled104 from "styled-components";
|
|
17539
|
+
import { styled as styled104 } from "styled-components";
|
|
17505
17540
|
import { isNotNil as isNotNil40 } from "@wistia/type-guards";
|
|
17506
17541
|
import { jsx as jsx323, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
17507
17542
|
var StyledThumbnailBadge = styled104.div`
|
|
@@ -17539,7 +17574,7 @@ ThumbnailBadge.displayName = "ThumbnailBadge_UI";
|
|
|
17539
17574
|
|
|
17540
17575
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
17541
17576
|
import { forwardRef as forwardRef37, useState as useState26, useRef as useRef24, useCallback as useCallback20, useMemo as useMemo17 } from "react";
|
|
17542
|
-
import styled106 from "styled-components";
|
|
17577
|
+
import { styled as styled106 } from "styled-components";
|
|
17543
17578
|
import { isNil as isNil19, isNotNil as isNotNil43, isUndefined as isUndefined7, isEmptyString as isEmptyString2, isString as isString4 } from "@wistia/type-guards";
|
|
17544
17579
|
|
|
17545
17580
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
@@ -17675,7 +17710,7 @@ var getBackgroundGradient = (gradientName = void 0) => {
|
|
|
17675
17710
|
};
|
|
17676
17711
|
|
|
17677
17712
|
// src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
|
|
17678
|
-
import styled105 from "styled-components";
|
|
17713
|
+
import { styled as styled105 } from "styled-components";
|
|
17679
17714
|
import { isNotNil as isNotNil42 } from "@wistia/type-guards";
|
|
17680
17715
|
import { jsx as jsx324, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
17681
17716
|
var ScrubLine = styled105.div`
|
|
@@ -18007,7 +18042,7 @@ Thumbnail.displayName = "Thumbnail_UI";
|
|
|
18007
18042
|
|
|
18008
18043
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
18009
18044
|
import React5 from "react";
|
|
18010
|
-
import styled107 from "styled-components";
|
|
18045
|
+
import { styled as styled107 } from "styled-components";
|
|
18011
18046
|
import { isNonEmptyArray } from "@wistia/type-guards";
|
|
18012
18047
|
import { jsx as jsx326 } from "react/jsx-runtime";
|
|
18013
18048
|
var StyledThumbnailCollage = styled107.div`
|
|
@@ -18113,7 +18148,7 @@ var ThumbnailCollage = ({
|
|
|
18113
18148
|
};
|
|
18114
18149
|
|
|
18115
18150
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
18116
|
-
import styled108,
|
|
18151
|
+
import { styled as styled108, css as css50 } from "styled-components";
|
|
18117
18152
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
18118
18153
|
import { jsx as jsx327, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
18119
18154
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -18238,7 +18273,7 @@ var WistiaLogo = ({
|
|
|
18238
18273
|
WistiaLogo.displayName = "WistiaLogo_UI";
|
|
18239
18274
|
|
|
18240
18275
|
// src/components/SplitButton/SplitButton.tsx
|
|
18241
|
-
import styled109 from "styled-components";
|
|
18276
|
+
import { styled as styled109 } from "styled-components";
|
|
18242
18277
|
import { isNotNil as isNotNil45 } from "@wistia/type-guards";
|
|
18243
18278
|
import { cloneElement as cloneElement9 } from "react";
|
|
18244
18279
|
import { jsx as jsx328, jsxs as jsxs71 } from "react/jsx-runtime";
|