@wistia/ui 0.6.41-beta.c3bbd05d.43de7c7 → 0.6.41
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 +194 -235
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +88 -129
- 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.6.41
|
|
3
|
+
* @license @wistia/ui v0.6.41
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1110,7 +1110,6 @@ var colorAliasTokens = css3`
|
|
|
1110
1110
|
/* --- Misc --- */
|
|
1111
1111
|
--wui-color-bg-fill-white: #ffffff;
|
|
1112
1112
|
--wui-color-focus-color: var(--wui-blue-9);
|
|
1113
|
-
--wui-color-invalid-indicator: var(--wui-error-9);
|
|
1114
1113
|
--wui-color-notification-pill-color: var(--wui-pink-9);
|
|
1115
1114
|
--wui-color-backdrop: var(--wui-gray-alpha-9);
|
|
1116
1115
|
--wui-color-segmented-control-checked-background: var(--wui-bg-app);
|
|
@@ -1122,7 +1121,7 @@ var colorAliasTokens = css3`
|
|
|
1122
1121
|
|
|
1123
1122
|
/* Disabled */
|
|
1124
1123
|
--wui-color-bg-surface-disabled: var(--wui-gray-3);
|
|
1125
|
-
--wui-color-border-disabled: var(--wui-gray-4);
|
|
1124
|
+
--wui-color-bg-border-disabled: var(--wui-gray-4);
|
|
1126
1125
|
--wui-color-icon-disabled: var(--wui-gray-8);
|
|
1127
1126
|
--wui-color-text-disabled: var(--wui-gray-10);
|
|
1128
1127
|
--wui-color-focus-ring-disabled: var(--wui-gray-6);
|
|
@@ -8105,7 +8104,7 @@ var StyledCheckboxInput = styled19.div`
|
|
|
8105
8104
|
align-self: flex-start;
|
|
8106
8105
|
border-width: 1px;
|
|
8107
8106
|
border-style: solid;
|
|
8108
|
-
border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-border-disabled)" : "var(--wui-color-border)"};
|
|
8107
|
+
border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-border-disabled)" : "var(--wui-color-border)"};
|
|
8109
8108
|
background-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-surface)"};
|
|
8110
8109
|
|
|
8111
8110
|
/* checkmark icon */
|
|
@@ -8812,7 +8811,7 @@ var Divider = ({
|
|
|
8812
8811
|
Divider.displayName = "Divider";
|
|
8813
8812
|
|
|
8814
8813
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
8815
|
-
import styled30, { css as
|
|
8814
|
+
import styled30, { css as css26 } from "styled-components";
|
|
8816
8815
|
import { useState as useState6, useRef as useRef5 } from "react";
|
|
8817
8816
|
|
|
8818
8817
|
// src/components/Tooltip/Tooltip.tsx
|
|
@@ -8929,43 +8928,29 @@ Tooltip.displayName = "Tooltip";
|
|
|
8929
8928
|
|
|
8930
8929
|
// src/components/Input/Input.tsx
|
|
8931
8930
|
import { forwardRef as forwardRef10, cloneElement as cloneElement4, useRef as useRef4 } from "react";
|
|
8932
|
-
import styled29, { css as
|
|
8931
|
+
import styled29, { css as css25 } from "styled-components";
|
|
8933
8932
|
import { isNil as isNil13, isNotNil as isNotNil12, isRecord as isRecord4 } from "@wistia/type-guards";
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
import { css as css25 } from "styled-components";
|
|
8937
|
-
var inputCssVariables = css25`
|
|
8933
|
+
import { jsx as jsx218, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
8934
|
+
var inputStyles = css25`
|
|
8938
8935
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
8939
8936
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
8940
|
-
--wui-input-color-border: var(--wui-color-border
|
|
8941
|
-
--wui-input-color-border-focus: var(--wui-color-
|
|
8942
|
-
--wui-input-color-border-error: var(--wui-color-
|
|
8937
|
+
--wui-input-color-border: var(--wui-color-border);
|
|
8938
|
+
--wui-input-color-border-focus: var(--wui-color-border-active);
|
|
8939
|
+
--wui-input-color-border-error: var(--wui-color-border-error);
|
|
8943
8940
|
--wui-input-color-border-disabled: var(--wui-color-border-disabled);
|
|
8944
|
-
--wui-input-border-radius: var(--wui-border-radius-
|
|
8941
|
+
--wui-input-border-radius: var(--wui-border-radius-rounded);
|
|
8945
8942
|
--wui-input-multiline-border-radius: var(--wui-border-radius-02);
|
|
8946
8943
|
--wui-input-vertical-padding: var(--wui-space-02);
|
|
8947
8944
|
--wui-input-horizontal-padding: var(--wui-space-03);
|
|
8948
8945
|
--wui-input-placeholder: var(--wui-gray-10);
|
|
8949
|
-
--wui-input-
|
|
8950
|
-
--wui-input-line-height: 16px;
|
|
8951
|
-
`;
|
|
8946
|
+
--wui-input-color-text-error: var(--wui-color-text-error);
|
|
8952
8947
|
|
|
8953
|
-
// src/components/Input/Input.tsx
|
|
8954
|
-
import { jsx as jsx218, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
8955
|
-
var inputStyles = css26`
|
|
8956
|
-
${inputCssVariables}
|
|
8957
8948
|
input,
|
|
8958
8949
|
textarea {
|
|
8959
8950
|
padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
|
|
8960
8951
|
background-color: var(--wui-input-color-bg);
|
|
8961
|
-
border:
|
|
8962
|
-
outline: 1px solid var(--wui-input-color-border);
|
|
8963
|
-
outline-offset: -1px;
|
|
8952
|
+
border: 1px solid var(--wui-input-color-border);
|
|
8964
8953
|
border-radius: var(--wui-input-border-radius);
|
|
8965
|
-
font-size: var(--wui-input-font-size);
|
|
8966
|
-
line-height: var(--wui-input-line-height);
|
|
8967
|
-
font-weight: var(--wui-typography-weight-body);
|
|
8968
|
-
color: var(--wui-color-text-primary);
|
|
8969
8954
|
|
|
8970
8955
|
&::placeholder {
|
|
8971
8956
|
color: var(--wui-input-placeholder);
|
|
@@ -8973,16 +8958,16 @@ var inputStyles = css26`
|
|
|
8973
8958
|
}
|
|
8974
8959
|
|
|
8975
8960
|
&:focus {
|
|
8976
|
-
|
|
8977
|
-
outline-offset: -2px;
|
|
8961
|
+
border-color: var(--wui-input-color-border-focus);
|
|
8978
8962
|
}
|
|
8979
8963
|
|
|
8980
8964
|
&[aria-invalid='true'] {
|
|
8981
|
-
|
|
8965
|
+
border-color: var(--wui-input-color-border-error);
|
|
8966
|
+
color: var(--wui-input-color-text-error);
|
|
8982
8967
|
}
|
|
8983
8968
|
|
|
8984
8969
|
&:disabled {
|
|
8985
|
-
|
|
8970
|
+
border-color: var(--wui-color-bg-surface-disabled);
|
|
8986
8971
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
8987
8972
|
}
|
|
8988
8973
|
}
|
|
@@ -9001,29 +8986,6 @@ var StyledInputContainer = styled29.div`
|
|
|
9001
8986
|
|
|
9002
8987
|
textarea {
|
|
9003
8988
|
border-radius: var(--wui-input-multiline-border-radius);
|
|
9004
|
-
|
|
9005
|
-
--wui-input-line-height: var(--wui-typography-body-3-line-height);
|
|
9006
|
-
}
|
|
9007
|
-
|
|
9008
|
-
[type='search'] {
|
|
9009
|
-
&::-webkit-search-cancel-button {
|
|
9010
|
-
appearance: none;
|
|
9011
|
-
height: 16px;
|
|
9012
|
-
width: 16px;
|
|
9013
|
-
margin-right: -4px;
|
|
9014
|
-
|
|
9015
|
-
/* css vars don't work in data URLs, so the stroke color value is hardcoded. if we support dark mode, we'll need to swap the background image based on the users preferred color scheme */
|
|
9016
|
-
background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4L4 12M4 4L12 12' stroke='%2364646a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
9017
|
-
background-position: center;
|
|
9018
|
-
background-repeat: no-repeat;
|
|
9019
|
-
cursor: pointer;
|
|
9020
|
-
background-color: var(--wui-color-bg-surface-secondary);
|
|
9021
|
-
border-radius: var(--wui-border-radius-rounded);
|
|
9022
|
-
|
|
9023
|
-
&:hover {
|
|
9024
|
-
background-color: var(--wui-color-bg-surface-secondary-hover);
|
|
9025
|
-
}
|
|
9026
|
-
}
|
|
9027
8989
|
}
|
|
9028
8990
|
|
|
9029
8991
|
.wui-input-left-icon {
|
|
@@ -9149,7 +9111,7 @@ var StyledInput = styled30(Input)`
|
|
|
9149
9111
|
height: ${({ $height }) => `${$height}px`};
|
|
9150
9112
|
}
|
|
9151
9113
|
`;
|
|
9152
|
-
var editableStyles =
|
|
9114
|
+
var editableStyles = css26`
|
|
9153
9115
|
&:has(+ :focus-within) {
|
|
9154
9116
|
background: var(--wui-color-bg-surface-hover);
|
|
9155
9117
|
}
|
|
@@ -9483,9 +9445,9 @@ import styled35 from "styled-components";
|
|
|
9483
9445
|
import { isArray as isArray2, isNotNil as isNotNil13, isNotUndefined as isNotUndefined9, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
9484
9446
|
|
|
9485
9447
|
// src/components/Label/Label.tsx
|
|
9486
|
-
import styled33, { css as
|
|
9448
|
+
import styled33, { css as css27 } from "styled-components";
|
|
9487
9449
|
import { jsx as jsx223 } from "react/jsx-runtime";
|
|
9488
|
-
var requiredStyle =
|
|
9450
|
+
var requiredStyle = css27`
|
|
9489
9451
|
&::after {
|
|
9490
9452
|
color: var(--wui-color-text-error);
|
|
9491
9453
|
display: inline;
|
|
@@ -9493,7 +9455,7 @@ var requiredStyle = css28`
|
|
|
9493
9455
|
content: '*';
|
|
9494
9456
|
}
|
|
9495
9457
|
`;
|
|
9496
|
-
var disabledStyle3 =
|
|
9458
|
+
var disabledStyle3 = css27`
|
|
9497
9459
|
color: var(--wui-color-text-disabled);
|
|
9498
9460
|
`;
|
|
9499
9461
|
var StyledLabel3 = styled33.label`
|
|
@@ -9848,7 +9810,7 @@ var Image = ({
|
|
|
9848
9810
|
Image.displayName = "Image";
|
|
9849
9811
|
|
|
9850
9812
|
// src/components/Menu/Menu.tsx
|
|
9851
|
-
import styled38, { css as
|
|
9813
|
+
import styled38, { css as css28, keyframes as keyframes2 } from "styled-components";
|
|
9852
9814
|
import {
|
|
9853
9815
|
DropdownMenu,
|
|
9854
9816
|
DropdownMenuTrigger,
|
|
@@ -9885,7 +9847,7 @@ var close = keyframes2`
|
|
|
9885
9847
|
transform: scale(.97) translateY(-8px);
|
|
9886
9848
|
}
|
|
9887
9849
|
`;
|
|
9888
|
-
var menuItemCss =
|
|
9850
|
+
var menuItemCss = css28`
|
|
9889
9851
|
--menu-label-description-gap: var(--wui-space-01);
|
|
9890
9852
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
9891
9853
|
--menu-item-left-icon-size: 24px;
|
|
@@ -9896,7 +9858,7 @@ var menuItemCss = css29`
|
|
|
9896
9858
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
9897
9859
|
--menu-divider-margin: var(--wui-space-02);
|
|
9898
9860
|
`;
|
|
9899
|
-
var compactMenuItemCss =
|
|
9861
|
+
var compactMenuItemCss = css28`
|
|
9900
9862
|
--menu-label-description-gap: 0;
|
|
9901
9863
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
9902
9864
|
--menu-item-left-icon-size: 16px;
|
|
@@ -9907,7 +9869,7 @@ var compactMenuItemCss = css29`
|
|
|
9907
9869
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
9908
9870
|
--menu-divider-margin: var(--wui-space-01);
|
|
9909
9871
|
`;
|
|
9910
|
-
var menuContentCss =
|
|
9872
|
+
var menuContentCss = css28`
|
|
9911
9873
|
--menu-font-family: var(--wui-typography-family-default);
|
|
9912
9874
|
--menu-bg: var(--wui-color-bg-surface);
|
|
9913
9875
|
--menu-shadow: var(--wui-elevation-01);
|
|
@@ -10679,7 +10641,7 @@ Modal.displayName = "Modal";
|
|
|
10679
10641
|
|
|
10680
10642
|
// src/components/Popover/Popover.tsx
|
|
10681
10643
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
10682
|
-
import styled48, { css as
|
|
10644
|
+
import styled48, { css as css29 } from "styled-components";
|
|
10683
10645
|
|
|
10684
10646
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
10685
10647
|
import { isNotNil as isNotNil20 } from "@wistia/type-guards";
|
|
@@ -10690,7 +10652,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
10690
10652
|
// src/components/Popover/Popover.tsx
|
|
10691
10653
|
import { jsx as jsx244, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
10692
10654
|
var StyledContent2 = styled48(Content2)`
|
|
10693
|
-
${({ $unstyled }) => !$unstyled &&
|
|
10655
|
+
${({ $unstyled }) => !$unstyled && css29`
|
|
10694
10656
|
border-radius: var(--wui-border-radius-02);
|
|
10695
10657
|
padding: var(--wui-space-04);
|
|
10696
10658
|
max-width: var(--wui-popover-max-width, 320px);
|
|
@@ -10830,7 +10792,7 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
10830
10792
|
|
|
10831
10793
|
// src/components/Radio/Radio.tsx
|
|
10832
10794
|
import { forwardRef as forwardRef19, useId as useId3 } from "react";
|
|
10833
|
-
import styled50, { css as
|
|
10795
|
+
import styled50, { css as css30 } from "styled-components";
|
|
10834
10796
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
10835
10797
|
import { jsx as jsx246, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
10836
10798
|
var RadioIcon = () => /* @__PURE__ */ jsx246(
|
|
@@ -10852,7 +10814,7 @@ var RadioIcon = () => /* @__PURE__ */ jsx246(
|
|
|
10852
10814
|
)
|
|
10853
10815
|
}
|
|
10854
10816
|
);
|
|
10855
|
-
var sizeSmall2 =
|
|
10817
|
+
var sizeSmall2 = css30`
|
|
10856
10818
|
width: 14px;
|
|
10857
10819
|
height: 14px;
|
|
10858
10820
|
min-width: 14px;
|
|
@@ -10863,7 +10825,7 @@ var sizeSmall2 = css31`
|
|
|
10863
10825
|
height: 7px;
|
|
10864
10826
|
}
|
|
10865
10827
|
`;
|
|
10866
|
-
var sizeMedium2 =
|
|
10828
|
+
var sizeMedium2 = css30`
|
|
10867
10829
|
width: 16px;
|
|
10868
10830
|
height: 16px;
|
|
10869
10831
|
min-width: 16px;
|
|
@@ -10874,7 +10836,7 @@ var sizeMedium2 = css31`
|
|
|
10874
10836
|
height: 8px;
|
|
10875
10837
|
}
|
|
10876
10838
|
`;
|
|
10877
|
-
var sizeLarge2 =
|
|
10839
|
+
var sizeLarge2 = css30`
|
|
10878
10840
|
width: 20px;
|
|
10879
10841
|
height: 20px;
|
|
10880
10842
|
min-width: 20px;
|
|
@@ -10907,7 +10869,7 @@ var StyledRadioInput = styled50.div`
|
|
|
10907
10869
|
align-self: flex-start;
|
|
10908
10870
|
border-width: 1px;
|
|
10909
10871
|
border-style: solid;
|
|
10910
|
-
border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-border-disabled)" : "var(--wui-color-border)"};
|
|
10872
|
+
border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-border-disabled)" : "var(--wui-color-border)"};
|
|
10911
10873
|
background-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-surface)"};
|
|
10912
10874
|
|
|
10913
10875
|
/* radio button circle icon */
|
|
@@ -10924,7 +10886,7 @@ var StyledHiddenRadioInput = styled50.input`
|
|
|
10924
10886
|
|
|
10925
10887
|
/* toggles display of faux-input border-color */
|
|
10926
10888
|
&:checked + label [data-wui-faux-input='true'] {
|
|
10927
|
-
border-color: ${({ disabled }) => disabled ? "var(--wui-color-border-disabled)" : "var(--wui-color-bg-fill)"};
|
|
10889
|
+
border-color: ${({ disabled }) => disabled ? "var(--wui-color-bg-border-disabled)" : "var(--wui-color-bg-fill)"};
|
|
10928
10890
|
}
|
|
10929
10891
|
|
|
10930
10892
|
/* toggles display of RadioIcon */
|
|
@@ -10998,7 +10960,7 @@ Radio.displayName = "Radio";
|
|
|
10998
10960
|
|
|
10999
10961
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
11000
10962
|
import { forwardRef as forwardRef20 } from "react";
|
|
11001
|
-
import styled52, { css as
|
|
10963
|
+
import styled52, { css as css31 } from "styled-components";
|
|
11002
10964
|
import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
|
|
11003
10965
|
import { isNil as isNil14 } from "@wistia/type-guards";
|
|
11004
10966
|
|
|
@@ -11089,7 +11051,7 @@ var SelectedItemIndicator = () => {
|
|
|
11089
11051
|
|
|
11090
11052
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
11091
11053
|
import { jsx as jsx249, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
11092
|
-
var segmentedControlStyles =
|
|
11054
|
+
var segmentedControlStyles = css31`
|
|
11093
11055
|
display: inline-flex;
|
|
11094
11056
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
11095
11057
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -11138,11 +11100,11 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
11138
11100
|
|
|
11139
11101
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
11140
11102
|
import { forwardRef as forwardRef21, useEffect as useEffect8, useRef as useRef10 } from "react";
|
|
11141
|
-
import styled53, { css as
|
|
11103
|
+
import styled53, { css as css32 } from "styled-components";
|
|
11142
11104
|
import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
11143
11105
|
import { isNotNil as isNotNil22 } from "@wistia/type-guards";
|
|
11144
11106
|
import { jsxs as jsxs35 } from "react/jsx-runtime";
|
|
11145
|
-
var segmentedControlItemStyles =
|
|
11107
|
+
var segmentedControlItemStyles = css32`
|
|
11146
11108
|
all: unset; /* ToggleGroupItem is a button element */
|
|
11147
11109
|
align-items: center;
|
|
11148
11110
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -11278,13 +11240,23 @@ import styled54 from "styled-components";
|
|
|
11278
11240
|
import { jsx as jsx250, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
11279
11241
|
var StyledTrigger = styled54(Trigger3)`
|
|
11280
11242
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
11281
|
-
|
|
11282
|
-
|
|
11283
|
-
|
|
11284
|
-
border:
|
|
11285
|
-
|
|
11286
|
-
|
|
11287
|
-
border-radius: var(--wui-
|
|
11243
|
+
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
11244
|
+
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
11245
|
+
--wui-select-color-border: var(--wui-color-border);
|
|
11246
|
+
--wui-select-color-border-focus: var(--wui-color-border-active);
|
|
11247
|
+
--wui-select-color-border-error: var(--wui-color-border-error);
|
|
11248
|
+
--wui-select-color-border-disabled: var(--wui-color-border-disabled);
|
|
11249
|
+
--wui-select-border-radius: var(--wui-border-radius-rounded);
|
|
11250
|
+
--wui-select-multiline-border-radius: var(--wui-border-radius-02);
|
|
11251
|
+
--wui-select-vertical-padding: var(--wui-space-02);
|
|
11252
|
+
--wui-select-horizontal-padding: var(--wui-space-03);
|
|
11253
|
+
--wui-select-placeholder: var(--wui-gray-10);
|
|
11254
|
+
--wui-select-color-text-error: var(--wui-color-text-error);
|
|
11255
|
+
|
|
11256
|
+
padding: var(--wui-select-vertical-padding) var(--wui-select-horizontal-padding);
|
|
11257
|
+
background-color: var(--wui-select-color-bg);
|
|
11258
|
+
border: 1px solid var(--wui-select-color-border);
|
|
11259
|
+
border-radius: var(--wui-select-border-radius);
|
|
11288
11260
|
min-width: 200px;
|
|
11289
11261
|
text-align: left;
|
|
11290
11262
|
display: inline-flex;
|
|
@@ -11292,9 +11264,6 @@ var StyledTrigger = styled54(Trigger3)`
|
|
|
11292
11264
|
justify-content: space-between;
|
|
11293
11265
|
max-width: 100%;
|
|
11294
11266
|
width: ${({ $fullWidth = false }) => $fullWidth ? "100%" : "auto"};
|
|
11295
|
-
color: var(--wui-input-color-text);
|
|
11296
|
-
font-size: var(--wui-input-font-size);
|
|
11297
|
-
line-height: var(--wui-input-line-height);
|
|
11298
11267
|
|
|
11299
11268
|
> span {
|
|
11300
11269
|
white-space: nowrap;
|
|
@@ -11308,17 +11277,14 @@ var StyledTrigger = styled54(Trigger3)`
|
|
|
11308
11277
|
}
|
|
11309
11278
|
|
|
11310
11279
|
&[aria-invalid='true'] {
|
|
11311
|
-
outline: 2px solid var(--wui-
|
|
11280
|
+
outline: 2px solid var(--wui-select-color-border-error);
|
|
11281
|
+
color: var(--wui-select-color-text-error);
|
|
11312
11282
|
}
|
|
11313
11283
|
|
|
11314
11284
|
&:disabled {
|
|
11315
|
-
|
|
11285
|
+
border-color: var(--wui-color-bg-surface-disabled);
|
|
11316
11286
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
11317
11287
|
}
|
|
11318
|
-
|
|
11319
|
-
[data-placeholder] {
|
|
11320
|
-
color: var(--wui-input-placeholder);
|
|
11321
|
-
}
|
|
11322
11288
|
`;
|
|
11323
11289
|
var StyledContent3 = styled54(Content3)`
|
|
11324
11290
|
--wui-select-content-border: var(--wui-color-border);
|
|
@@ -11362,13 +11328,7 @@ var Select = forwardRef22(
|
|
|
11362
11328
|
$fullWidth: responsiveFullWidth,
|
|
11363
11329
|
...props,
|
|
11364
11330
|
children: [
|
|
11365
|
-
/* @__PURE__ */ jsx250(
|
|
11366
|
-
Value,
|
|
11367
|
-
{
|
|
11368
|
-
"data-placeholder": placeholder,
|
|
11369
|
-
placeholder
|
|
11370
|
-
}
|
|
11371
|
-
),
|
|
11331
|
+
/* @__PURE__ */ jsx250(Value, { placeholder }),
|
|
11372
11332
|
/* @__PURE__ */ jsx250(
|
|
11373
11333
|
Icon,
|
|
11374
11334
|
{
|
|
@@ -11404,7 +11364,6 @@ var StyledItem = styled55(Item)`
|
|
|
11404
11364
|
font-size: var(--font-size);
|
|
11405
11365
|
font-weight: var(--font-weight);
|
|
11406
11366
|
border-radius: var(--wui-border-radius-01);
|
|
11407
|
-
cursor: pointer;
|
|
11408
11367
|
|
|
11409
11368
|
&:hover,
|
|
11410
11369
|
&:focus-visible {
|
|
@@ -11469,10 +11428,10 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
|
11469
11428
|
|
|
11470
11429
|
// src/components/Switch/Switch.tsx
|
|
11471
11430
|
import { forwardRef as forwardRef24, useId as useId4 } from "react";
|
|
11472
|
-
import styled57, { css as
|
|
11431
|
+
import styled57, { css as css33 } from "styled-components";
|
|
11473
11432
|
import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
11474
11433
|
import { jsx as jsx253, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
11475
|
-
var sizeSmall3 =
|
|
11434
|
+
var sizeSmall3 = css33`
|
|
11476
11435
|
--wui-size-small-width: 24px;
|
|
11477
11436
|
--wui-size-small-height: 14px;
|
|
11478
11437
|
|
|
@@ -11487,7 +11446,7 @@ var sizeSmall3 = css34`
|
|
|
11487
11446
|
height: calc(var(--wui-size-small-width) / 2);
|
|
11488
11447
|
}
|
|
11489
11448
|
`;
|
|
11490
|
-
var sizeMedium3 =
|
|
11449
|
+
var sizeMedium3 = css33`
|
|
11491
11450
|
--wui-size-medium-width: 32px;
|
|
11492
11451
|
--wui-size-medium-height: 18px;
|
|
11493
11452
|
|
|
@@ -11502,7 +11461,7 @@ var sizeMedium3 = css34`
|
|
|
11502
11461
|
height: calc(var(--wui-size-medium-width) / 2);
|
|
11503
11462
|
}
|
|
11504
11463
|
`;
|
|
11505
|
-
var sizeLarge3 =
|
|
11464
|
+
var sizeLarge3 = css33`
|
|
11506
11465
|
--wui-size-large-width: 40px;
|
|
11507
11466
|
--wui-size-large-height: 22px;
|
|
11508
11467
|
|
|
@@ -11540,7 +11499,7 @@ var StyledSwitchInput = styled57.div`
|
|
|
11540
11499
|
transition: all 0.2s ease-in-out;
|
|
11541
11500
|
border-width: 1px;
|
|
11542
11501
|
border-style: solid;
|
|
11543
|
-
border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-border-disabled)" : "var(--wui-color-border)"}; /* "off state" border */
|
|
11502
|
+
border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-border-disabled)" : "var(--wui-color-border)"}; /* "off state" border */
|
|
11544
11503
|
|
|
11545
11504
|
background-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-surface-secondary)"}; /* "off state" background */
|
|
11546
11505
|
|
|
@@ -11631,19 +11590,19 @@ var Switch = forwardRef24(
|
|
|
11631
11590
|
Switch.displayName = "Switch";
|
|
11632
11591
|
|
|
11633
11592
|
// src/components/Table/Table.tsx
|
|
11634
|
-
import styled58, { css as
|
|
11593
|
+
import styled58, { css as css34 } from "styled-components";
|
|
11635
11594
|
import { jsx as jsx254 } from "react/jsx-runtime";
|
|
11636
11595
|
var StyledTable = styled58.table`
|
|
11637
11596
|
width: 100%;
|
|
11638
11597
|
border-collapse: collapse;
|
|
11639
11598
|
|
|
11640
|
-
${({ $striped }) => $striped &&
|
|
11599
|
+
${({ $striped }) => $striped && css34`
|
|
11641
11600
|
tbody tr:nth-child(even) {
|
|
11642
11601
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
11643
11602
|
}
|
|
11644
11603
|
`}
|
|
11645
11604
|
|
|
11646
|
-
${({ $divided }) => $divided &&
|
|
11605
|
+
${({ $divided }) => $divided && css34`
|
|
11647
11606
|
tr {
|
|
11648
11607
|
border-bottom: 1px solid var(--wui-color-border);
|
|
11649
11608
|
}
|
|
@@ -11682,9 +11641,9 @@ var TableBody = ({ children, ...props }) => {
|
|
|
11682
11641
|
|
|
11683
11642
|
// src/components/Table/TableCell.tsx
|
|
11684
11643
|
import { useContext as useContext7 } from "react";
|
|
11685
|
-
import styled60, { css as
|
|
11644
|
+
import styled60, { css as css35 } from "styled-components";
|
|
11686
11645
|
import { jsx as jsx256 } from "react/jsx-runtime";
|
|
11687
|
-
var sharedStyles =
|
|
11646
|
+
var sharedStyles = css35`
|
|
11688
11647
|
color: var(--wui-color-text);
|
|
11689
11648
|
padding: var(--wui-space-02);
|
|
11690
11649
|
text-align: left;
|
|
@@ -12208,7 +12167,7 @@ var Tag = forwardRef28(
|
|
|
12208
12167
|
Tag.displayName = "Tag";
|
|
12209
12168
|
|
|
12210
12169
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
12211
|
-
import styled70, { css as
|
|
12170
|
+
import styled70, { css as css36 } from "styled-components";
|
|
12212
12171
|
import { isNotNil as isNotNil26 } from "@wistia/type-guards";
|
|
12213
12172
|
import { jsx as jsx266, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
12214
12173
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -12266,12 +12225,12 @@ var WistiaLogoComponent = styled70.svg`
|
|
|
12266
12225
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
12267
12226
|
if ($opticallyCentered) {
|
|
12268
12227
|
if ($iconOnly) {
|
|
12269
|
-
return
|
|
12228
|
+
return css36`
|
|
12270
12229
|
aspect-ratio: 1;
|
|
12271
12230
|
padding: 11.85% 3.12% 13.91%;
|
|
12272
12231
|
`;
|
|
12273
12232
|
}
|
|
12274
|
-
return
|
|
12233
|
+
return css36`
|
|
12275
12234
|
aspect-ratio: 127 / 32;
|
|
12276
12235
|
`;
|
|
12277
12236
|
}
|
|
@@ -12379,9 +12338,9 @@ import { isNotNil as isNotNil29 } from "@wistia/type-guards";
|
|
|
12379
12338
|
|
|
12380
12339
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
12381
12340
|
import { isNotNil as isNotNil28 } from "@wistia/type-guards";
|
|
12382
|
-
import { css as
|
|
12341
|
+
import { css as css37 } from "styled-components";
|
|
12383
12342
|
var gradients = {
|
|
12384
|
-
defaultDarkOne:
|
|
12343
|
+
defaultDarkOne: css37`
|
|
12385
12344
|
background-color: #222d66;
|
|
12386
12345
|
background-image:
|
|
12387
12346
|
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
@@ -12389,7 +12348,7 @@ var gradients = {
|
|
|
12389
12348
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
12390
12349
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
12391
12350
|
`,
|
|
12392
|
-
defaultDarkTwo:
|
|
12351
|
+
defaultDarkTwo: css37`
|
|
12393
12352
|
background-color: #222d66;
|
|
12394
12353
|
background-image:
|
|
12395
12354
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
@@ -12397,7 +12356,7 @@ var gradients = {
|
|
|
12397
12356
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
12398
12357
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
12399
12358
|
`,
|
|
12400
|
-
defaultLightOne:
|
|
12359
|
+
defaultLightOne: css37`
|
|
12401
12360
|
background-color: #ccd5ff;
|
|
12402
12361
|
background-image:
|
|
12403
12362
|
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
@@ -12405,13 +12364,13 @@ var gradients = {
|
|
|
12405
12364
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
12406
12365
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
12407
12366
|
`,
|
|
12408
|
-
defaultLightTwo:
|
|
12367
|
+
defaultLightTwo: css37`
|
|
12409
12368
|
background-color: #ccd5ff;
|
|
12410
12369
|
background-image:
|
|
12411
12370
|
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
12412
12371
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
12413
12372
|
`,
|
|
12414
|
-
defaultMidOne:
|
|
12373
|
+
defaultMidOne: css37`
|
|
12415
12374
|
background-color: #6b84ff;
|
|
12416
12375
|
background-image:
|
|
12417
12376
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
@@ -12419,13 +12378,13 @@ var gradients = {
|
|
|
12419
12378
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
12420
12379
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
12421
12380
|
`,
|
|
12422
|
-
defaultMidTwo:
|
|
12381
|
+
defaultMidTwo: css37`
|
|
12423
12382
|
background-color: #6b84ff;
|
|
12424
12383
|
background-image:
|
|
12425
12384
|
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
12426
12385
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
12427
12386
|
`,
|
|
12428
|
-
green:
|
|
12387
|
+
green: css37`
|
|
12429
12388
|
background-color: #fafffa;
|
|
12430
12389
|
background-image:
|
|
12431
12390
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -12433,7 +12392,7 @@ var gradients = {
|
|
|
12433
12392
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
12434
12393
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
12435
12394
|
`,
|
|
12436
|
-
greenWithPop:
|
|
12395
|
+
greenWithPop: css37`
|
|
12437
12396
|
background-color: #fafffa;
|
|
12438
12397
|
background-image:
|
|
12439
12398
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -12441,7 +12400,7 @@ var gradients = {
|
|
|
12441
12400
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
12442
12401
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
12443
12402
|
`,
|
|
12444
|
-
pink:
|
|
12403
|
+
pink: css37`
|
|
12445
12404
|
background-color: #fffff0;
|
|
12446
12405
|
background-image:
|
|
12447
12406
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
@@ -12449,7 +12408,7 @@ var gradients = {
|
|
|
12449
12408
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
12450
12409
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
12451
12410
|
`,
|
|
12452
|
-
pinkWithPop:
|
|
12411
|
+
pinkWithPop: css37`
|
|
12453
12412
|
background-color: #fffff0;
|
|
12454
12413
|
background-image:
|
|
12455
12414
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
@@ -12457,7 +12416,7 @@ var gradients = {
|
|
|
12457
12416
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
12458
12417
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
12459
12418
|
`,
|
|
12460
|
-
playfulGradientOne:
|
|
12419
|
+
playfulGradientOne: css37`
|
|
12461
12420
|
background-color: #f7f8ff;
|
|
12462
12421
|
background-image:
|
|
12463
12422
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
@@ -12465,7 +12424,7 @@ var gradients = {
|
|
|
12465
12424
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
12466
12425
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
12467
12426
|
`,
|
|
12468
|
-
playfulGradientTwo:
|
|
12427
|
+
playfulGradientTwo: css37`
|
|
12469
12428
|
background-color: #f7f8ff;
|
|
12470
12429
|
background-image:
|
|
12471
12430
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
@@ -12473,13 +12432,13 @@ var gradients = {
|
|
|
12473
12432
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
12474
12433
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
12475
12434
|
`,
|
|
12476
|
-
purple:
|
|
12435
|
+
purple: css37`
|
|
12477
12436
|
background-color: #f2caff;
|
|
12478
12437
|
background-image:
|
|
12479
12438
|
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
12480
12439
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
12481
12440
|
`,
|
|
12482
|
-
purpleWithPop:
|
|
12441
|
+
purpleWithPop: css37`
|
|
12483
12442
|
background-color: #f2caff;
|
|
12484
12443
|
background-image:
|
|
12485
12444
|
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
@@ -12487,7 +12446,7 @@ var gradients = {
|
|
|
12487
12446
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
12488
12447
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
12489
12448
|
`,
|
|
12490
|
-
yellow:
|
|
12449
|
+
yellow: css37`
|
|
12491
12450
|
background-color: #fffff0;
|
|
12492
12451
|
background-image:
|
|
12493
12452
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -12495,7 +12454,7 @@ var gradients = {
|
|
|
12495
12454
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
12496
12455
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
12497
12456
|
`,
|
|
12498
|
-
yellowWithPop:
|
|
12457
|
+
yellowWithPop: css37`
|
|
12499
12458
|
background-color: #fffff0;
|
|
12500
12459
|
background-image:
|
|
12501
12460
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|