@wistia/ui 0.4.9 → 0.4.10-beta.129a60b0.d418b13
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 +252 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +172 -16
- package/dist/index.d.ts +172 -16
- package/dist/index.mjs +279 -143
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.4.
|
|
3
|
+
* @license @wistia/ui v0.4.10-beta.129a60b0.d418b13
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -5948,7 +5948,7 @@ var StyledBadge = styled9.div`
|
|
|
5948
5948
|
padding: var(--wui-space-01) var(--wui-space-02);
|
|
5949
5949
|
width: fit-content;
|
|
5950
5950
|
|
|
5951
|
-
/*
|
|
5951
|
+
/* Icon component size */
|
|
5952
5952
|
svg {
|
|
5953
5953
|
height: 12px;
|
|
5954
5954
|
width: 12px;
|
|
@@ -5975,7 +5975,7 @@ var Badge = forwardRef4(
|
|
|
5975
5975
|
Badge.displayName = "Badge";
|
|
5976
5976
|
|
|
5977
5977
|
// src/components/Box/Box.tsx
|
|
5978
|
-
import { Children, cloneElement as cloneElement2 } from "react";
|
|
5978
|
+
import { Children, cloneElement as cloneElement2, forwardRef as forwardRef5 } from "react";
|
|
5979
5979
|
import styled10 from "styled-components";
|
|
5980
5980
|
import { isNotNil as isNotNil7, isNil as isNil7, isRecord as isRecord3 } from "@wistia/type-guards";
|
|
5981
5981
|
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
@@ -6055,49 +6055,52 @@ var wrapChildren = (children) => {
|
|
|
6055
6055
|
}
|
|
6056
6056
|
return null;
|
|
6057
6057
|
};
|
|
6058
|
-
var Box = (
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
}
|
|
6058
|
+
var Box = forwardRef5(
|
|
6059
|
+
({
|
|
6060
|
+
alignContent = "stretch",
|
|
6061
|
+
alignItems = "flex-start",
|
|
6062
|
+
alignSelf,
|
|
6063
|
+
basis,
|
|
6064
|
+
children,
|
|
6065
|
+
direction = "row",
|
|
6066
|
+
fill = false,
|
|
6067
|
+
fillViewport = false,
|
|
6068
|
+
gap,
|
|
6069
|
+
grow,
|
|
6070
|
+
hasBoxParent = false,
|
|
6071
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6072
|
+
inline = false,
|
|
6073
|
+
justifyContent = "flex-start",
|
|
6074
|
+
order,
|
|
6075
|
+
shrink,
|
|
6076
|
+
wrapItems = false,
|
|
6077
|
+
...otherProps
|
|
6078
|
+
}, ref) => {
|
|
6079
|
+
return /* @__PURE__ */ jsx167(
|
|
6080
|
+
BoxComponent,
|
|
6081
|
+
{
|
|
6082
|
+
ref,
|
|
6083
|
+
$alignContent: alignContent,
|
|
6084
|
+
$alignItems: alignItems,
|
|
6085
|
+
$alignSelf: alignSelf,
|
|
6086
|
+
$basis: basis,
|
|
6087
|
+
$fillBox: fill,
|
|
6088
|
+
$fillViewport: fillViewport,
|
|
6089
|
+
$flexDirection: direction,
|
|
6090
|
+
$gap: gap,
|
|
6091
|
+
$grow: grow,
|
|
6092
|
+
$inline: inline,
|
|
6093
|
+
$justifyContent: justifyContent,
|
|
6094
|
+
$order: order,
|
|
6095
|
+
$shrink: shrink,
|
|
6096
|
+
$wrapItems: wrapItems,
|
|
6097
|
+
as: "div",
|
|
6098
|
+
...otherProps,
|
|
6099
|
+
children: wrapChildren(children)
|
|
6100
|
+
}
|
|
6101
|
+
);
|
|
6102
|
+
}
|
|
6103
|
+
);
|
|
6101
6104
|
Box.displayName = "Box";
|
|
6102
6105
|
|
|
6103
6106
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
@@ -6257,7 +6260,7 @@ var Card = ({
|
|
|
6257
6260
|
Card.displayName = "Card";
|
|
6258
6261
|
|
|
6259
6262
|
// src/components/Checkbox/Checkbox.tsx
|
|
6260
|
-
import { forwardRef as
|
|
6263
|
+
import { forwardRef as forwardRef7, useId } from "react";
|
|
6261
6264
|
import { Root as CheckboxRoot, Indicator as CheckboxIndicator } from "@radix-ui/react-checkbox";
|
|
6262
6265
|
import styled17 from "styled-components";
|
|
6263
6266
|
import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
|
|
@@ -6266,7 +6269,7 @@ import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
|
|
|
6266
6269
|
import styled15, { css as css16 } from "styled-components";
|
|
6267
6270
|
|
|
6268
6271
|
// src/components/Heading/Heading.tsx
|
|
6269
|
-
import { forwardRef as
|
|
6272
|
+
import { forwardRef as forwardRef6 } from "react";
|
|
6270
6273
|
import styled14, { css as css15 } from "styled-components";
|
|
6271
6274
|
|
|
6272
6275
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
@@ -6360,7 +6363,7 @@ var variantElementMap = {
|
|
|
6360
6363
|
heading5: "h5",
|
|
6361
6364
|
heading6: "h6"
|
|
6362
6365
|
};
|
|
6363
|
-
var HeadingComponent =
|
|
6366
|
+
var HeadingComponent = forwardRef6(
|
|
6364
6367
|
({
|
|
6365
6368
|
align = "left",
|
|
6366
6369
|
colorScheme = "inherit",
|
|
@@ -6541,7 +6544,7 @@ var StyledLabelWrapper = styled17.div`
|
|
|
6541
6544
|
flex-direction: column;
|
|
6542
6545
|
margin-left: var(--wui-space-02);
|
|
6543
6546
|
`;
|
|
6544
|
-
var Checkbox =
|
|
6547
|
+
var Checkbox = forwardRef7(
|
|
6545
6548
|
({
|
|
6546
6549
|
checked,
|
|
6547
6550
|
disabled = false,
|
|
@@ -6647,12 +6650,12 @@ var Divider = ({
|
|
|
6647
6650
|
Divider.displayName = "Divider";
|
|
6648
6651
|
|
|
6649
6652
|
// src/components/Form/Form.tsx
|
|
6650
|
-
import { forwardRef as
|
|
6653
|
+
import { forwardRef as forwardRef9, useRef as useRef3, useMemo as useMemo4, createContext as createContext2, useState as useState5, useId as useId2 } from "react";
|
|
6651
6654
|
import styled20 from "styled-components";
|
|
6652
6655
|
import { isNotUndefined as isNotUndefined4, isUndefined as isUndefined3 } from "@wistia/type-guards";
|
|
6653
6656
|
|
|
6654
6657
|
// src/components/Stack/Stack.tsx
|
|
6655
|
-
import { forwardRef as
|
|
6658
|
+
import { forwardRef as forwardRef8 } from "react";
|
|
6656
6659
|
import styled19 from "styled-components";
|
|
6657
6660
|
import { jsx as jsx177 } from "react/jsx-runtime";
|
|
6658
6661
|
var DEFAULT_ELEMENT2 = "div";
|
|
@@ -6661,7 +6664,7 @@ var StyledStack = styled19.div`
|
|
|
6661
6664
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
6662
6665
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
6663
6666
|
`;
|
|
6664
|
-
var StackComponent =
|
|
6667
|
+
var StackComponent = forwardRef8(
|
|
6665
6668
|
({ renderAs, direction = "vertical", gap = "space-02", ...props }, ref) => {
|
|
6666
6669
|
const responsiveGap = useResponsiveProp(gap);
|
|
6667
6670
|
const responsiveDirection = useResponsiveProp(direction);
|
|
@@ -6769,7 +6772,7 @@ var FormComponent = ({ children, action, values = {}, validate, fullWidth = fals
|
|
|
6769
6772
|
);
|
|
6770
6773
|
};
|
|
6771
6774
|
FormComponent.displayName = "Form";
|
|
6772
|
-
var Form =
|
|
6775
|
+
var Form = forwardRef9(FormComponent);
|
|
6773
6776
|
|
|
6774
6777
|
// src/components/Form/useFormState.tsx
|
|
6775
6778
|
import { useCallback as useCallback5, useState as useState6 } from "react";
|
|
@@ -6851,7 +6854,7 @@ import styled23 from "styled-components";
|
|
|
6851
6854
|
import { isArray as isArray2, isNotNil as isNotNil8, isNotUndefined as isNotUndefined6, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
6852
6855
|
|
|
6853
6856
|
// src/components/Text/Text.tsx
|
|
6854
|
-
import { forwardRef as
|
|
6857
|
+
import { forwardRef as forwardRef10 } from "react";
|
|
6855
6858
|
import styled21, { css as css18 } from "styled-components";
|
|
6856
6859
|
import { jsx as jsx180 } from "react/jsx-runtime";
|
|
6857
6860
|
var bodyBoldStyles = css18`
|
|
@@ -6993,7 +6996,7 @@ var StyledText = styled21.div`
|
|
|
6993
6996
|
`}
|
|
6994
6997
|
`;
|
|
6995
6998
|
var DEFAULT_ELEMENT3 = "div";
|
|
6996
|
-
var TextComponent =
|
|
6999
|
+
var TextComponent = forwardRef10(
|
|
6997
7000
|
({
|
|
6998
7001
|
align = "left",
|
|
6999
7002
|
colorScheme = "inherit",
|
|
@@ -7207,7 +7210,7 @@ var RadioGroup = ({
|
|
|
7207
7210
|
RadioGroup.displayName = "RadioGroup";
|
|
7208
7211
|
|
|
7209
7212
|
// src/components/IconButton/IconButton.tsx
|
|
7210
|
-
import { Children as Children3, cloneElement as cloneElement4, forwardRef as
|
|
7213
|
+
import { Children as Children3, cloneElement as cloneElement4, forwardRef as forwardRef11 } from "react";
|
|
7211
7214
|
import styled24 from "styled-components";
|
|
7212
7215
|
import { jsx as jsx185 } from "react/jsx-runtime";
|
|
7213
7216
|
var StyledButton2 = styled24(Button)`
|
|
@@ -7224,7 +7227,7 @@ var StyledButton2 = styled24(Button)`
|
|
|
7224
7227
|
align-items: center;
|
|
7225
7228
|
line-height: 1;
|
|
7226
7229
|
`;
|
|
7227
|
-
var IconButton =
|
|
7230
|
+
var IconButton = forwardRef11(
|
|
7228
7231
|
({ children, label, size = "md", ...props }, ref) => {
|
|
7229
7232
|
const responsiveSize = useResponsiveProp(size);
|
|
7230
7233
|
return /* @__PURE__ */ jsx185(
|
|
@@ -7245,7 +7248,7 @@ var IconButton = forwardRef10(
|
|
|
7245
7248
|
IconButton.displayName = "IconButton";
|
|
7246
7249
|
|
|
7247
7250
|
// src/components/Input/Input.tsx
|
|
7248
|
-
import { forwardRef as
|
|
7251
|
+
import { forwardRef as forwardRef12, cloneElement as cloneElement5, useRef as useRef6 } from "react";
|
|
7249
7252
|
import styled25, { css as css19 } from "styled-components";
|
|
7250
7253
|
import { isNil as isNil10, isNotNil as isNotNil9 } from "@wistia/type-guards";
|
|
7251
7254
|
import { jsx as jsx186, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
@@ -7337,7 +7340,7 @@ var StyledInputContainer = styled25.div`
|
|
|
7337
7340
|
var isValidRef = (ref) => {
|
|
7338
7341
|
return typeof ref === "object" && ref !== null && "current" in ref && isNotNil9(ref.current);
|
|
7339
7342
|
};
|
|
7340
|
-
var Input =
|
|
7343
|
+
var Input = forwardRef12(
|
|
7341
7344
|
({
|
|
7342
7345
|
fullWidth = false,
|
|
7343
7346
|
monospace = false,
|
|
@@ -7611,7 +7614,7 @@ import {
|
|
|
7611
7614
|
import { isNotNil as isNotNil12 } from "@wistia/type-guards";
|
|
7612
7615
|
|
|
7613
7616
|
// src/components/Menu/MenuItemButton.tsx
|
|
7614
|
-
import { forwardRef as
|
|
7617
|
+
import { forwardRef as forwardRef13 } from "react";
|
|
7615
7618
|
import styled28 from "styled-components";
|
|
7616
7619
|
import { isNotNil as isNotNil11, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
|
|
7617
7620
|
import { jsx as jsx189, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
@@ -7683,7 +7686,7 @@ var StyledBadgeContainer = styled28.div`
|
|
|
7683
7686
|
font-size: var(--wui-typography-label-4-size);
|
|
7684
7687
|
color: var(--wui-color-text-secondary);
|
|
7685
7688
|
`;
|
|
7686
|
-
var MenuItemButton =
|
|
7689
|
+
var MenuItemButton = forwardRef13(({ children, appearance, command, icon, ...props }, ref) => {
|
|
7687
7690
|
let { colorScheme, badge } = props;
|
|
7688
7691
|
if (appearance === "dangerous") {
|
|
7689
7692
|
if (isNotUndefined8(colorScheme)) {
|
|
@@ -7807,10 +7810,10 @@ var SubMenu = ({
|
|
|
7807
7810
|
SubMenu.displayName = "SubMenu";
|
|
7808
7811
|
|
|
7809
7812
|
// src/components/Menu/MenuItem.tsx
|
|
7810
|
-
import { forwardRef as
|
|
7813
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
7811
7814
|
import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
|
|
7812
7815
|
import { jsx as jsx192 } from "react/jsx-runtime";
|
|
7813
|
-
var MenuItem =
|
|
7816
|
+
var MenuItem = forwardRef14(
|
|
7814
7817
|
({ onSelect = () => null, ...props }, ref) => {
|
|
7815
7818
|
return /* @__PURE__ */ jsx192(
|
|
7816
7819
|
DropdownMenuItem2,
|
|
@@ -7967,7 +7970,7 @@ var CheckboxMenuItem = ({
|
|
|
7967
7970
|
CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
7968
7971
|
|
|
7969
7972
|
// src/components/Modal/Modal.tsx
|
|
7970
|
-
import { forwardRef as
|
|
7973
|
+
import { forwardRef as forwardRef17 } from "react";
|
|
7971
7974
|
import styled36 from "styled-components";
|
|
7972
7975
|
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
7973
7976
|
import { isNotNil as isNotNil15 } from "@wistia/type-guards";
|
|
@@ -8050,7 +8053,7 @@ var ModalHeader = ({
|
|
|
8050
8053
|
};
|
|
8051
8054
|
|
|
8052
8055
|
// src/components/Modal/ModalContent.tsx
|
|
8053
|
-
import { forwardRef as
|
|
8056
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
8054
8057
|
import styled34 from "styled-components";
|
|
8055
8058
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
8056
8059
|
|
|
@@ -8115,7 +8118,7 @@ var StyledModalContent = styled34(DialogContent)`
|
|
|
8115
8118
|
}
|
|
8116
8119
|
}
|
|
8117
8120
|
`;
|
|
8118
|
-
var ModalContent =
|
|
8121
|
+
var ModalContent = forwardRef15(
|
|
8119
8122
|
({ fullHeight, width, children, ...otherProps }, ref) => {
|
|
8120
8123
|
useFocusRestore();
|
|
8121
8124
|
return /* @__PURE__ */ jsx199(
|
|
@@ -8124,6 +8127,7 @@ var ModalContent = forwardRef14(
|
|
|
8124
8127
|
ref,
|
|
8125
8128
|
$fullHeight: fullHeight,
|
|
8126
8129
|
$width: width,
|
|
8130
|
+
"aria-describedby": void 0,
|
|
8127
8131
|
...otherProps,
|
|
8128
8132
|
children
|
|
8129
8133
|
}
|
|
@@ -8132,7 +8136,7 @@ var ModalContent = forwardRef14(
|
|
|
8132
8136
|
);
|
|
8133
8137
|
|
|
8134
8138
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
8135
|
-
import { forwardRef as
|
|
8139
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
8136
8140
|
import styled35 from "styled-components";
|
|
8137
8141
|
import { jsx as jsx200 } from "react/jsx-runtime";
|
|
8138
8142
|
var backdropAnimationDuration = 150;
|
|
@@ -8170,7 +8174,7 @@ var BackdropComponent = styled35.div`
|
|
|
8170
8174
|
}
|
|
8171
8175
|
}
|
|
8172
8176
|
`;
|
|
8173
|
-
var Backdrop =
|
|
8177
|
+
var Backdrop = forwardRef16(
|
|
8174
8178
|
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx200(
|
|
8175
8179
|
BackdropComponent,
|
|
8176
8180
|
{
|
|
@@ -8191,7 +8195,7 @@ var ModalBody = styled36.div`
|
|
|
8191
8195
|
display: flex;
|
|
8192
8196
|
order: 2;
|
|
8193
8197
|
`;
|
|
8194
|
-
var Modal =
|
|
8198
|
+
var Modal = forwardRef17(
|
|
8195
8199
|
({
|
|
8196
8200
|
children,
|
|
8197
8201
|
fullHeight = false,
|
|
@@ -8219,7 +8223,6 @@ var Modal = forwardRef16(
|
|
|
8219
8223
|
ModalContent,
|
|
8220
8224
|
{
|
|
8221
8225
|
ref,
|
|
8222
|
-
"aria-describedby": void 0,
|
|
8223
8226
|
fullHeight,
|
|
8224
8227
|
onOpenAutoFocus: (event) => {
|
|
8225
8228
|
if (isNotNil15(initialFocusRef) && initialFocusRef.current) {
|
|
@@ -8252,7 +8255,7 @@ var Modal = forwardRef16(
|
|
|
8252
8255
|
Modal.displayName = "Modal";
|
|
8253
8256
|
|
|
8254
8257
|
// src/components/Radio/Radio.tsx
|
|
8255
|
-
import { forwardRef as
|
|
8258
|
+
import { forwardRef as forwardRef18, useId as useId3 } from "react";
|
|
8256
8259
|
import styled37, { css as css21 } from "styled-components";
|
|
8257
8260
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
8258
8261
|
import { jsx as jsx202, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
@@ -8326,7 +8329,7 @@ var StyledRadioWrapper = styled37.div`
|
|
|
8326
8329
|
|
|
8327
8330
|
${({ disabled }) => disabled && disabledStyle2};
|
|
8328
8331
|
`;
|
|
8329
|
-
var Radio =
|
|
8332
|
+
var Radio = forwardRef18(
|
|
8330
8333
|
({
|
|
8331
8334
|
checked,
|
|
8332
8335
|
disabled = false,
|
|
@@ -8381,12 +8384,143 @@ var Radio = forwardRef17(
|
|
|
8381
8384
|
);
|
|
8382
8385
|
Radio.displayName = "Radio";
|
|
8383
8386
|
|
|
8384
|
-
// src/components/
|
|
8385
|
-
import { forwardRef as
|
|
8387
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
8388
|
+
import { forwardRef as forwardRef19 } from "react";
|
|
8386
8389
|
import styled38 from "styled-components";
|
|
8387
|
-
import {
|
|
8388
|
-
import {
|
|
8389
|
-
|
|
8390
|
+
import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
|
|
8391
|
+
import { isNil as isNil11 } from "@wistia/type-guards";
|
|
8392
|
+
import { jsx as jsx203 } from "react/jsx-runtime";
|
|
8393
|
+
var StyledSegmentedControl = styled38(ToggleGroupRoot)`
|
|
8394
|
+
display: inline-flex;
|
|
8395
|
+
background-color: var(--wui-color-bg-surface-secondary);
|
|
8396
|
+
border-radius: var(--wui-border-radius-rounded);
|
|
8397
|
+
border: 2px solid var(--wui-color-bg-surface-secondary);
|
|
8398
|
+
gap: var(--wui-space-01);
|
|
8399
|
+
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
8400
|
+
`;
|
|
8401
|
+
var SegmentedControl = forwardRef19(
|
|
8402
|
+
({
|
|
8403
|
+
children,
|
|
8404
|
+
disabled = false,
|
|
8405
|
+
fullWidth = false,
|
|
8406
|
+
selectedValue,
|
|
8407
|
+
onSelectedValueChange,
|
|
8408
|
+
...props
|
|
8409
|
+
}, ref) => {
|
|
8410
|
+
if (isNil11(children)) {
|
|
8411
|
+
return null;
|
|
8412
|
+
}
|
|
8413
|
+
return /* @__PURE__ */ jsx203(
|
|
8414
|
+
StyledSegmentedControl,
|
|
8415
|
+
{
|
|
8416
|
+
ref,
|
|
8417
|
+
$fullWidth: fullWidth,
|
|
8418
|
+
disabled,
|
|
8419
|
+
loop: true,
|
|
8420
|
+
onValueChange: onSelectedValueChange,
|
|
8421
|
+
rovingFocus: true,
|
|
8422
|
+
type: "single",
|
|
8423
|
+
value: selectedValue,
|
|
8424
|
+
...props,
|
|
8425
|
+
children
|
|
8426
|
+
}
|
|
8427
|
+
);
|
|
8428
|
+
}
|
|
8429
|
+
);
|
|
8430
|
+
SegmentedControl.displayName = "SegmentedControl";
|
|
8431
|
+
|
|
8432
|
+
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
8433
|
+
import { forwardRef as forwardRef20 } from "react";
|
|
8434
|
+
import styled39 from "styled-components";
|
|
8435
|
+
import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
8436
|
+
import { isNotNil as isNotNil16 } from "@wistia/type-guards";
|
|
8437
|
+
import { jsxs as jsxs23 } from "react/jsx-runtime";
|
|
8438
|
+
var StyledSegmentedControlItem = styled39(ToggleGroupItem)`
|
|
8439
|
+
all: unset; /* ToggleGroupItem is a button element */
|
|
8440
|
+
align-items: center;
|
|
8441
|
+
border-radius: var(--wui-border-radius-rounded);
|
|
8442
|
+
color: var(--wui-color-text-secondary);
|
|
8443
|
+
cursor: pointer;
|
|
8444
|
+
display: flex;
|
|
8445
|
+
flex-grow: 1;
|
|
8446
|
+
flex-shrink: 1;
|
|
8447
|
+
font-size: var(--wui-typography-label-3-size);
|
|
8448
|
+
justify-content: center;
|
|
8449
|
+
padding: 6px 8px;
|
|
8450
|
+
user-select: none;
|
|
8451
|
+
|
|
8452
|
+
/* Icon component */
|
|
8453
|
+
svg {
|
|
8454
|
+
height: 16px;
|
|
8455
|
+
width: 16px;
|
|
8456
|
+
|
|
8457
|
+
/* add right margin if there's a label and an icon */
|
|
8458
|
+
${({ $hasLabel }) => $hasLabel ? "margin-right: var(--wui-space-01)" : ""}
|
|
8459
|
+
}
|
|
8460
|
+
|
|
8461
|
+
&:hover {
|
|
8462
|
+
background-color: var(--wui-color-bg-surface-secondary-hover);
|
|
8463
|
+
}
|
|
8464
|
+
|
|
8465
|
+
&:focus-visible {
|
|
8466
|
+
outline: 2px solid var(--wui-color-focus-ring);
|
|
8467
|
+
}
|
|
8468
|
+
|
|
8469
|
+
&[data-state='on'] {
|
|
8470
|
+
background-color: var(--wui-color-bg-fill-white);
|
|
8471
|
+
color: var(--wui-color-text-selected);
|
|
8472
|
+
cursor: default;
|
|
8473
|
+
}
|
|
8474
|
+
|
|
8475
|
+
&:focus-visible,
|
|
8476
|
+
&[data-state='on'] {
|
|
8477
|
+
svg path {
|
|
8478
|
+
fill: var(--wui-color-focus-ring);
|
|
8479
|
+
}
|
|
8480
|
+
}
|
|
8481
|
+
|
|
8482
|
+
&[data-disabled] {
|
|
8483
|
+
cursor: not-allowed;
|
|
8484
|
+
|
|
8485
|
+
&:hover {
|
|
8486
|
+
background-color: inherit;
|
|
8487
|
+
}
|
|
8488
|
+
}
|
|
8489
|
+
`;
|
|
8490
|
+
var SegmentedControlItem = forwardRef20(
|
|
8491
|
+
({ disabled, icon, label, "aria-label": ariaLabel, value }, ref) => {
|
|
8492
|
+
const handleClick = (event) => {
|
|
8493
|
+
const target = event.target;
|
|
8494
|
+
const { state } = target.dataset;
|
|
8495
|
+
if (state === "on") {
|
|
8496
|
+
event.preventDefault();
|
|
8497
|
+
}
|
|
8498
|
+
};
|
|
8499
|
+
return /* @__PURE__ */ jsxs23(
|
|
8500
|
+
StyledSegmentedControlItem,
|
|
8501
|
+
{
|
|
8502
|
+
ref,
|
|
8503
|
+
$hasLabel: isNotNil16(label),
|
|
8504
|
+
"aria-label": isNotNil16(label) ? void 0 : ariaLabel,
|
|
8505
|
+
disabled,
|
|
8506
|
+
onClick: handleClick,
|
|
8507
|
+
value,
|
|
8508
|
+
children: [
|
|
8509
|
+
icon,
|
|
8510
|
+
label
|
|
8511
|
+
]
|
|
8512
|
+
}
|
|
8513
|
+
);
|
|
8514
|
+
}
|
|
8515
|
+
);
|
|
8516
|
+
SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
8517
|
+
|
|
8518
|
+
// src/components/Tag/Tag.tsx
|
|
8519
|
+
import { forwardRef as forwardRef21 } from "react";
|
|
8520
|
+
import styled40 from "styled-components";
|
|
8521
|
+
import { isNil as isNil12, isNotNil as isNotNil17, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
8522
|
+
import { Fragment as Fragment3, jsx as jsx204, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
8523
|
+
var TagLabel = styled40.a`
|
|
8390
8524
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8391
8525
|
font-size: var(--wui-typography-label-4-size);
|
|
8392
8526
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8414,14 +8548,14 @@ var TagLabel = styled38.a`
|
|
|
8414
8548
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8415
8549
|
}
|
|
8416
8550
|
`;
|
|
8417
|
-
var TagDivider =
|
|
8551
|
+
var TagDivider = styled40.div`
|
|
8418
8552
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8419
8553
|
border-left: 1px solid var(--wui-color-border);
|
|
8420
8554
|
display: flex;
|
|
8421
8555
|
height: 14px;
|
|
8422
8556
|
width: 1px;
|
|
8423
8557
|
`;
|
|
8424
|
-
var StyledRemoveButton =
|
|
8558
|
+
var StyledRemoveButton = styled40.button`
|
|
8425
8559
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8426
8560
|
all: unset;
|
|
8427
8561
|
cursor: pointer;
|
|
@@ -8449,7 +8583,7 @@ var StyledRemoveButton = styled38.button`
|
|
|
8449
8583
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8450
8584
|
}
|
|
8451
8585
|
`;
|
|
8452
|
-
var StyledTag =
|
|
8586
|
+
var StyledTag = styled40.div`
|
|
8453
8587
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8454
8588
|
align-items: center;
|
|
8455
8589
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -8458,47 +8592,47 @@ var StyledTag = styled38.div`
|
|
|
8458
8592
|
overflow: hidden;
|
|
8459
8593
|
`;
|
|
8460
8594
|
var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
8461
|
-
if (
|
|
8595
|
+
if (isNil12(onClickRemove)) {
|
|
8462
8596
|
return null;
|
|
8463
8597
|
}
|
|
8464
|
-
if (
|
|
8598
|
+
if (isNil12(onClickRemoveLabel)) {
|
|
8465
8599
|
throw new Error(
|
|
8466
8600
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
8467
8601
|
);
|
|
8468
8602
|
}
|
|
8469
|
-
return /* @__PURE__ */
|
|
8470
|
-
/* @__PURE__ */
|
|
8471
|
-
/* @__PURE__ */
|
|
8603
|
+
return /* @__PURE__ */ jsxs24(Fragment3, { children: [
|
|
8604
|
+
/* @__PURE__ */ jsx204(TagDivider, { $colorScheme: colorScheme }),
|
|
8605
|
+
/* @__PURE__ */ jsxs24(
|
|
8472
8606
|
StyledRemoveButton,
|
|
8473
8607
|
{
|
|
8474
8608
|
$colorScheme: colorScheme,
|
|
8475
8609
|
onClick: onClickRemove,
|
|
8476
8610
|
type: "button",
|
|
8477
8611
|
children: [
|
|
8478
|
-
/* @__PURE__ */
|
|
8612
|
+
/* @__PURE__ */ jsx204(
|
|
8479
8613
|
Icon,
|
|
8480
8614
|
{
|
|
8481
8615
|
size: "sm",
|
|
8482
8616
|
type: "close"
|
|
8483
8617
|
}
|
|
8484
8618
|
),
|
|
8485
|
-
/* @__PURE__ */
|
|
8619
|
+
/* @__PURE__ */ jsx204(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
8486
8620
|
]
|
|
8487
8621
|
}
|
|
8488
8622
|
)
|
|
8489
8623
|
] });
|
|
8490
8624
|
};
|
|
8491
|
-
var Tag =
|
|
8625
|
+
var Tag = forwardRef21(
|
|
8492
8626
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
8493
|
-
const labelProps =
|
|
8494
|
-
return /* @__PURE__ */
|
|
8627
|
+
const labelProps = isNotNil17(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
|
|
8628
|
+
return /* @__PURE__ */ jsxs24(
|
|
8495
8629
|
StyledTag,
|
|
8496
8630
|
{
|
|
8497
8631
|
ref,
|
|
8498
8632
|
$colorScheme: colorScheme,
|
|
8499
8633
|
...otherProps,
|
|
8500
8634
|
children: [
|
|
8501
|
-
/* @__PURE__ */
|
|
8635
|
+
/* @__PURE__ */ jsx204(
|
|
8502
8636
|
TagLabel,
|
|
8503
8637
|
{
|
|
8504
8638
|
...labelProps,
|
|
@@ -8506,7 +8640,7 @@ var Tag = forwardRef18(
|
|
|
8506
8640
|
children: label
|
|
8507
8641
|
}
|
|
8508
8642
|
),
|
|
8509
|
-
/* @__PURE__ */
|
|
8643
|
+
/* @__PURE__ */ jsx204(
|
|
8510
8644
|
RemoveButton,
|
|
8511
8645
|
{
|
|
8512
8646
|
colorScheme,
|
|
@@ -8529,8 +8663,8 @@ import {
|
|
|
8529
8663
|
Portal,
|
|
8530
8664
|
Arrow
|
|
8531
8665
|
} from "@radix-ui/react-tooltip";
|
|
8532
|
-
import
|
|
8533
|
-
import { jsx as
|
|
8666
|
+
import styled41, { css as css22 } from "styled-components";
|
|
8667
|
+
import { jsx as jsx205, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
8534
8668
|
var CompactTooltipStyles = css22`
|
|
8535
8669
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8536
8670
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
@@ -8538,7 +8672,7 @@ var CompactTooltipStyles = css22`
|
|
|
8538
8672
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8539
8673
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8540
8674
|
`;
|
|
8541
|
-
var StyledContent =
|
|
8675
|
+
var StyledContent = styled41(Content)`
|
|
8542
8676
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8543
8677
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8544
8678
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -8596,14 +8730,14 @@ var Tooltip = ({
|
|
|
8596
8730
|
if (forceOpen === true) {
|
|
8597
8731
|
rootProps.open = true;
|
|
8598
8732
|
}
|
|
8599
|
-
return /* @__PURE__ */
|
|
8733
|
+
return /* @__PURE__ */ jsxs25(
|
|
8600
8734
|
Root,
|
|
8601
8735
|
{
|
|
8602
8736
|
delayDuration: delay,
|
|
8603
8737
|
...rootProps,
|
|
8604
8738
|
children: [
|
|
8605
|
-
/* @__PURE__ */
|
|
8606
|
-
/* @__PURE__ */
|
|
8739
|
+
/* @__PURE__ */ jsx205(Trigger, { asChild: true, children }),
|
|
8740
|
+
/* @__PURE__ */ jsx205(Portal, { children: /* @__PURE__ */ jsxs25(
|
|
8607
8741
|
StyledContent,
|
|
8608
8742
|
{
|
|
8609
8743
|
$compact: compact,
|
|
@@ -8611,7 +8745,7 @@ var Tooltip = ({
|
|
|
8611
8745
|
sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
|
|
8612
8746
|
children: [
|
|
8613
8747
|
content,
|
|
8614
|
-
!hideArrow ? /* @__PURE__ */
|
|
8748
|
+
!hideArrow ? /* @__PURE__ */ jsx205(Arrow, { asChild: true, children: /* @__PURE__ */ jsx205(
|
|
8615
8749
|
"svg",
|
|
8616
8750
|
{
|
|
8617
8751
|
fill: "var(--tooltip-bg)",
|
|
@@ -8620,7 +8754,7 @@ var Tooltip = ({
|
|
|
8620
8754
|
viewBox: "0 0 12 8",
|
|
8621
8755
|
width: "12",
|
|
8622
8756
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8623
|
-
children: /* @__PURE__ */
|
|
8757
|
+
children: /* @__PURE__ */ jsx205("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
|
|
8624
8758
|
}
|
|
8625
8759
|
) }) : null
|
|
8626
8760
|
]
|
|
@@ -8633,26 +8767,26 @@ var Tooltip = ({
|
|
|
8633
8767
|
Tooltip.displayName = "Tooltip";
|
|
8634
8768
|
|
|
8635
8769
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
8636
|
-
import
|
|
8637
|
-
import { isNotNil as
|
|
8638
|
-
import { jsx as
|
|
8770
|
+
import styled42 from "styled-components";
|
|
8771
|
+
import { isNotNil as isNotNil18 } from "@wistia/type-guards";
|
|
8772
|
+
import { jsx as jsx206, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
8639
8773
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
8640
8774
|
if (iconOnly) {
|
|
8641
|
-
return /* @__PURE__ */
|
|
8775
|
+
return /* @__PURE__ */ jsx206(
|
|
8642
8776
|
"g",
|
|
8643
8777
|
{
|
|
8644
8778
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
8645
8779
|
fill: brandmarkColor,
|
|
8646
|
-
children: /* @__PURE__ */
|
|
8780
|
+
children: /* @__PURE__ */ jsx206("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
|
|
8647
8781
|
}
|
|
8648
8782
|
);
|
|
8649
8783
|
}
|
|
8650
|
-
return /* @__PURE__ */
|
|
8784
|
+
return /* @__PURE__ */ jsx206(
|
|
8651
8785
|
"g",
|
|
8652
8786
|
{
|
|
8653
8787
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
8654
8788
|
fill: brandmarkColor,
|
|
8655
|
-
children: /* @__PURE__ */
|
|
8789
|
+
children: /* @__PURE__ */ jsx206("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
|
|
8656
8790
|
}
|
|
8657
8791
|
);
|
|
8658
8792
|
};
|
|
@@ -8660,12 +8794,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
8660
8794
|
if (iconOnly) {
|
|
8661
8795
|
return null;
|
|
8662
8796
|
}
|
|
8663
|
-
return /* @__PURE__ */
|
|
8797
|
+
return /* @__PURE__ */ jsx206(
|
|
8664
8798
|
"g",
|
|
8665
8799
|
{
|
|
8666
8800
|
"data-testid": "ui-wistia-logo-logotype",
|
|
8667
8801
|
fill: logotypeColor,
|
|
8668
|
-
children: /* @__PURE__ */
|
|
8802
|
+
children: /* @__PURE__ */ jsx206("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
|
|
8669
8803
|
}
|
|
8670
8804
|
);
|
|
8671
8805
|
};
|
|
@@ -8675,7 +8809,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
8675
8809
|
}
|
|
8676
8810
|
return "0 0 144 31.47";
|
|
8677
8811
|
};
|
|
8678
|
-
var WistiaLogoComponent =
|
|
8812
|
+
var WistiaLogoComponent = styled42.svg`
|
|
8679
8813
|
height: ${({ height }) => `${height}px`};
|
|
8680
8814
|
|
|
8681
8815
|
/* ensure it will always fit on mobile */
|
|
@@ -8717,7 +8851,7 @@ var WistiaLogo = ({
|
|
|
8717
8851
|
};
|
|
8718
8852
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
8719
8853
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
8720
|
-
const Logo = /* @__PURE__ */
|
|
8854
|
+
const Logo = /* @__PURE__ */ jsxs26(
|
|
8721
8855
|
WistiaLogoComponent,
|
|
8722
8856
|
{
|
|
8723
8857
|
$hoverColor: hoverColor,
|
|
@@ -8727,14 +8861,14 @@ var WistiaLogo = ({
|
|
|
8727
8861
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8728
8862
|
...otherProps,
|
|
8729
8863
|
children: [
|
|
8730
|
-
/* @__PURE__ */
|
|
8731
|
-
|
|
8864
|
+
/* @__PURE__ */ jsx206("title", { children: title }),
|
|
8865
|
+
isNotNil18(description) ? /* @__PURE__ */ jsx206("desc", { children: description }) : null,
|
|
8732
8866
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
8733
8867
|
renderLogotype(logotypeColor, iconOnly)
|
|
8734
8868
|
]
|
|
8735
8869
|
}
|
|
8736
8870
|
);
|
|
8737
|
-
return href !== void 0 ? /* @__PURE__ */
|
|
8871
|
+
return href !== void 0 ? /* @__PURE__ */ jsx206("a", { href, children: Logo }) : Logo;
|
|
8738
8872
|
};
|
|
8739
8873
|
WistiaLogo.displayName = "WistiaLogo";
|
|
8740
8874
|
|
|
@@ -8749,10 +8883,10 @@ import {
|
|
|
8749
8883
|
Value,
|
|
8750
8884
|
ScrollDownButton
|
|
8751
8885
|
} from "@radix-ui/react-select";
|
|
8752
|
-
import { forwardRef as
|
|
8753
|
-
import
|
|
8754
|
-
import { jsx as
|
|
8755
|
-
var StyledTrigger =
|
|
8886
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
8887
|
+
import styled43 from "styled-components";
|
|
8888
|
+
import { jsx as jsx207, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
8889
|
+
var StyledTrigger = styled43(Trigger2)`
|
|
8756
8890
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8757
8891
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
8758
8892
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -8793,7 +8927,7 @@ var StyledTrigger = styled41(Trigger2)`
|
|
|
8793
8927
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
8794
8928
|
}
|
|
8795
8929
|
`;
|
|
8796
|
-
var StyledContent2 =
|
|
8930
|
+
var StyledContent2 = styled43(Content2)`
|
|
8797
8931
|
--wui-select-content-border: var(--wui-color-border);
|
|
8798
8932
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
8799
8933
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -8809,7 +8943,7 @@ var StyledContent2 = styled41(Content2)`
|
|
|
8809
8943
|
padding: var(--wui-select-option-padding);
|
|
8810
8944
|
min-width: 200px;
|
|
8811
8945
|
`;
|
|
8812
|
-
var Select =
|
|
8946
|
+
var Select = forwardRef22(
|
|
8813
8947
|
({
|
|
8814
8948
|
colorScheme = "inherit",
|
|
8815
8949
|
children,
|
|
@@ -8819,13 +8953,13 @@ var Select = forwardRef19(
|
|
|
8819
8953
|
...props
|
|
8820
8954
|
}, forwardedRef) => {
|
|
8821
8955
|
const responsiveFullWidth = useResponsiveProp(fullWidth);
|
|
8822
|
-
return /* @__PURE__ */
|
|
8956
|
+
return /* @__PURE__ */ jsxs27(
|
|
8823
8957
|
Root2,
|
|
8824
8958
|
{
|
|
8825
8959
|
...props,
|
|
8826
8960
|
onValueChange: onChange,
|
|
8827
8961
|
children: [
|
|
8828
|
-
/* @__PURE__ */
|
|
8962
|
+
/* @__PURE__ */ jsxs27(
|
|
8829
8963
|
StyledTrigger,
|
|
8830
8964
|
{
|
|
8831
8965
|
ref: forwardedRef,
|
|
@@ -8833,8 +8967,8 @@ var Select = forwardRef19(
|
|
|
8833
8967
|
$fullWidth: responsiveFullWidth,
|
|
8834
8968
|
...props,
|
|
8835
8969
|
children: [
|
|
8836
|
-
/* @__PURE__ */
|
|
8837
|
-
/* @__PURE__ */
|
|
8970
|
+
/* @__PURE__ */ jsx207(Value, { placeholder }),
|
|
8971
|
+
/* @__PURE__ */ jsx207(
|
|
8838
8972
|
Icon,
|
|
8839
8973
|
{
|
|
8840
8974
|
size: "md",
|
|
@@ -8844,10 +8978,10 @@ var Select = forwardRef19(
|
|
|
8844
8978
|
]
|
|
8845
8979
|
}
|
|
8846
8980
|
),
|
|
8847
|
-
/* @__PURE__ */
|
|
8848
|
-
/* @__PURE__ */
|
|
8849
|
-
/* @__PURE__ */
|
|
8850
|
-
/* @__PURE__ */
|
|
8981
|
+
/* @__PURE__ */ jsx207(Portal2, { children: /* @__PURE__ */ jsxs27(StyledContent2, { position: "popper", children: [
|
|
8982
|
+
/* @__PURE__ */ jsx207(ScrollUpButton, { children: /* @__PURE__ */ jsx207(Icon, { type: "caret-up" }) }),
|
|
8983
|
+
/* @__PURE__ */ jsx207(Viewport, { children }),
|
|
8984
|
+
/* @__PURE__ */ jsx207(ScrollDownButton, { children: /* @__PURE__ */ jsx207(Icon, { type: "caret-down" }) })
|
|
8851
8985
|
] }) })
|
|
8852
8986
|
]
|
|
8853
8987
|
}
|
|
@@ -8858,10 +8992,10 @@ Select.displayName = "Select";
|
|
|
8858
8992
|
|
|
8859
8993
|
// src/components/Select/SelectOption.tsx
|
|
8860
8994
|
import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
8861
|
-
import { forwardRef as
|
|
8862
|
-
import
|
|
8863
|
-
import { jsx as
|
|
8864
|
-
var StyledItem =
|
|
8995
|
+
import { forwardRef as forwardRef23 } from "react";
|
|
8996
|
+
import styled44 from "styled-components";
|
|
8997
|
+
import { jsx as jsx208, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
8998
|
+
var StyledItem = styled44(Item)`
|
|
8865
8999
|
${variantStyleMap2.body3};
|
|
8866
9000
|
display: flex;
|
|
8867
9001
|
padding: var(--wui-select-option-padding);
|
|
@@ -8884,25 +9018,25 @@ var StyledItem = styled42(Item)`
|
|
|
8884
9018
|
background-color: transparent;
|
|
8885
9019
|
}
|
|
8886
9020
|
`;
|
|
8887
|
-
var StyledIconContainer =
|
|
9021
|
+
var StyledIconContainer = styled44.span`
|
|
8888
9022
|
width: 12px;
|
|
8889
9023
|
`;
|
|
8890
|
-
var SelectOption =
|
|
9024
|
+
var SelectOption = forwardRef23(
|
|
8891
9025
|
({ children, ...props }, forwardedRef) => {
|
|
8892
|
-
return /* @__PURE__ */
|
|
9026
|
+
return /* @__PURE__ */ jsxs28(
|
|
8893
9027
|
StyledItem,
|
|
8894
9028
|
{
|
|
8895
9029
|
...props,
|
|
8896
9030
|
ref: forwardedRef,
|
|
8897
9031
|
children: [
|
|
8898
|
-
/* @__PURE__ */
|
|
9032
|
+
/* @__PURE__ */ jsx208(StyledIconContainer, { children: /* @__PURE__ */ jsx208(ItemIndicator, { children: /* @__PURE__ */ jsx208(
|
|
8899
9033
|
Icon,
|
|
8900
9034
|
{
|
|
8901
9035
|
size: "sm",
|
|
8902
9036
|
type: "checkmark"
|
|
8903
9037
|
}
|
|
8904
9038
|
) }) }),
|
|
8905
|
-
/* @__PURE__ */
|
|
9039
|
+
/* @__PURE__ */ jsx208(ItemText, { children })
|
|
8906
9040
|
]
|
|
8907
9041
|
}
|
|
8908
9042
|
);
|
|
@@ -8912,14 +9046,14 @@ SelectOption.displayName = "Option";
|
|
|
8912
9046
|
|
|
8913
9047
|
// src/components/Select/SelectOptionGroup.tsx
|
|
8914
9048
|
import { Group, Label as Label2 } from "@radix-ui/react-select";
|
|
8915
|
-
import
|
|
8916
|
-
import { jsx as
|
|
8917
|
-
var StyledLabel3 =
|
|
9049
|
+
import styled45 from "styled-components";
|
|
9050
|
+
import { jsx as jsx209, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
9051
|
+
var StyledLabel3 = styled45(Label2)`
|
|
8918
9052
|
padding: var(--wui-select-option-padding);
|
|
8919
9053
|
`;
|
|
8920
9054
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
8921
|
-
return /* @__PURE__ */
|
|
8922
|
-
/* @__PURE__ */
|
|
9055
|
+
return /* @__PURE__ */ jsxs29(Group, { ...props, children: [
|
|
9056
|
+
/* @__PURE__ */ jsx209(StyledLabel3, { children: /* @__PURE__ */ jsx209(
|
|
8923
9057
|
Text,
|
|
8924
9058
|
{
|
|
8925
9059
|
prominence: "secondary",
|
|
@@ -8967,6 +9101,8 @@ export {
|
|
|
8967
9101
|
RadioGroup,
|
|
8968
9102
|
RadioMenuItem,
|
|
8969
9103
|
ScreenReaderOnly,
|
|
9104
|
+
SegmentedControl,
|
|
9105
|
+
SegmentedControlItem,
|
|
8970
9106
|
Select,
|
|
8971
9107
|
SelectOption,
|
|
8972
9108
|
SelectOptionGroup,
|