@wistia/ui 0.4.10-beta.f4fe6fa2.2799dfc → 0.4.10
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 +61 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +215 -32
- package/dist/index.d.ts +215 -32
- package/dist/index.mjs +98 -104
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.4.10
|
|
3
|
+
* @license @wistia/ui v0.4.10
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -5975,16 +5975,9 @@ var Badge = forwardRef4(
|
|
|
5975
5975
|
Badge.displayName = "Badge";
|
|
5976
5976
|
|
|
5977
5977
|
// src/components/Box/Box.tsx
|
|
5978
|
-
import { Children, cloneElement as cloneElement2
|
|
5978
|
+
import { Children, cloneElement as cloneElement2 } 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
|
-
|
|
5982
|
-
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
5983
|
-
var makePolymorphic = (component) => {
|
|
5984
|
-
return component;
|
|
5985
|
-
};
|
|
5986
|
-
|
|
5987
|
-
// src/components/Box/Box.tsx
|
|
5988
5981
|
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
5989
5982
|
var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
|
|
5990
5983
|
var getGapStyle = (gap) => {
|
|
@@ -6028,7 +6021,7 @@ var getFillViewportStyle = (fillViewport) => {
|
|
|
6028
6021
|
}
|
|
6029
6022
|
return void 0;
|
|
6030
6023
|
};
|
|
6031
|
-
var
|
|
6024
|
+
var BoxComponent = styled10.div`
|
|
6032
6025
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
6033
6026
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
6034
6027
|
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
@@ -6062,56 +6055,50 @@ var wrapChildren = (children) => {
|
|
|
6062
6055
|
}
|
|
6063
6056
|
return null;
|
|
6064
6057
|
};
|
|
6065
|
-
var
|
|
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
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
}
|
|
6110
|
-
);
|
|
6111
|
-
}
|
|
6112
|
-
);
|
|
6113
|
-
BoxComponent.displayName = "Box";
|
|
6114
|
-
var Box = makePolymorphic(BoxComponent);
|
|
6058
|
+
var Box = ({
|
|
6059
|
+
alignContent = "stretch",
|
|
6060
|
+
alignItems = "flex-start",
|
|
6061
|
+
alignSelf,
|
|
6062
|
+
basis,
|
|
6063
|
+
children,
|
|
6064
|
+
direction = "row",
|
|
6065
|
+
fill = false,
|
|
6066
|
+
fillViewport = false,
|
|
6067
|
+
gap,
|
|
6068
|
+
grow,
|
|
6069
|
+
hasBoxParent = false,
|
|
6070
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6071
|
+
inline = false,
|
|
6072
|
+
justifyContent = "flex-start",
|
|
6073
|
+
order,
|
|
6074
|
+
shrink,
|
|
6075
|
+
wrapItems = false,
|
|
6076
|
+
...otherProps
|
|
6077
|
+
}) => {
|
|
6078
|
+
return /* @__PURE__ */ jsx167(
|
|
6079
|
+
BoxComponent,
|
|
6080
|
+
{
|
|
6081
|
+
$alignContent: alignContent,
|
|
6082
|
+
$alignItems: alignItems,
|
|
6083
|
+
$alignSelf: alignSelf,
|
|
6084
|
+
$basis: basis,
|
|
6085
|
+
$fillBox: fill,
|
|
6086
|
+
$fillViewport: fillViewport,
|
|
6087
|
+
$flexDirection: direction,
|
|
6088
|
+
$gap: gap,
|
|
6089
|
+
$grow: grow,
|
|
6090
|
+
$inline: inline,
|
|
6091
|
+
$justifyContent: justifyContent,
|
|
6092
|
+
$order: order,
|
|
6093
|
+
$shrink: shrink,
|
|
6094
|
+
$wrapItems: wrapItems,
|
|
6095
|
+
as: "div",
|
|
6096
|
+
...otherProps,
|
|
6097
|
+
children: wrapChildren(children)
|
|
6098
|
+
}
|
|
6099
|
+
);
|
|
6100
|
+
};
|
|
6101
|
+
Box.displayName = "Box";
|
|
6115
6102
|
|
|
6116
6103
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
6117
6104
|
import styled11 from "styled-components";
|
|
@@ -6270,7 +6257,7 @@ var Card = ({
|
|
|
6270
6257
|
Card.displayName = "Card";
|
|
6271
6258
|
|
|
6272
6259
|
// src/components/Checkbox/Checkbox.tsx
|
|
6273
|
-
import { forwardRef as
|
|
6260
|
+
import { forwardRef as forwardRef6, useId } from "react";
|
|
6274
6261
|
import { Root as CheckboxRoot, Indicator as CheckboxIndicator } from "@radix-ui/react-checkbox";
|
|
6275
6262
|
import styled17 from "styled-components";
|
|
6276
6263
|
import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
|
|
@@ -6279,8 +6266,15 @@ import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
|
|
|
6279
6266
|
import styled15, { css as css16 } from "styled-components";
|
|
6280
6267
|
|
|
6281
6268
|
// src/components/Heading/Heading.tsx
|
|
6282
|
-
import { forwardRef as
|
|
6269
|
+
import { forwardRef as forwardRef5 } from "react";
|
|
6283
6270
|
import styled14, { css as css15 } from "styled-components";
|
|
6271
|
+
|
|
6272
|
+
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
6273
|
+
var makePolymorphic = (component) => {
|
|
6274
|
+
return component;
|
|
6275
|
+
};
|
|
6276
|
+
|
|
6277
|
+
// src/components/Heading/Heading.tsx
|
|
6284
6278
|
import { jsx as jsx172 } from "react/jsx-runtime";
|
|
6285
6279
|
var heroStyle = css15`
|
|
6286
6280
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
@@ -6333,7 +6327,7 @@ var variantStyleMap = {
|
|
|
6333
6327
|
heading5: heading5TextStyle,
|
|
6334
6328
|
heading6: heading6TextStyle
|
|
6335
6329
|
};
|
|
6336
|
-
var
|
|
6330
|
+
var DEFAULT_ELEMENT = "h1";
|
|
6337
6331
|
var StyledHeading = styled14.div`
|
|
6338
6332
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6339
6333
|
font-family: var(--font-family);
|
|
@@ -6358,15 +6352,15 @@ var StyledHeading = styled14.div`
|
|
|
6358
6352
|
margin: 0;
|
|
6359
6353
|
`;
|
|
6360
6354
|
var variantElementMap = {
|
|
6361
|
-
hero:
|
|
6362
|
-
heading1:
|
|
6355
|
+
hero: DEFAULT_ELEMENT,
|
|
6356
|
+
heading1: DEFAULT_ELEMENT,
|
|
6363
6357
|
heading2: "h2",
|
|
6364
6358
|
heading3: "h3",
|
|
6365
6359
|
heading4: "h4",
|
|
6366
6360
|
heading5: "h5",
|
|
6367
6361
|
heading6: "h6"
|
|
6368
6362
|
};
|
|
6369
|
-
var HeadingComponent =
|
|
6363
|
+
var HeadingComponent = forwardRef5(
|
|
6370
6364
|
({
|
|
6371
6365
|
align = "left",
|
|
6372
6366
|
colorScheme = "inherit",
|
|
@@ -6547,7 +6541,7 @@ var StyledLabelWrapper = styled17.div`
|
|
|
6547
6541
|
flex-direction: column;
|
|
6548
6542
|
margin-left: var(--wui-space-02);
|
|
6549
6543
|
`;
|
|
6550
|
-
var Checkbox =
|
|
6544
|
+
var Checkbox = forwardRef6(
|
|
6551
6545
|
({
|
|
6552
6546
|
checked,
|
|
6553
6547
|
disabled = false,
|
|
@@ -6653,21 +6647,21 @@ var Divider = ({
|
|
|
6653
6647
|
Divider.displayName = "Divider";
|
|
6654
6648
|
|
|
6655
6649
|
// src/components/Form/Form.tsx
|
|
6656
|
-
import { forwardRef as
|
|
6650
|
+
import { forwardRef as forwardRef8, useRef as useRef3, useMemo as useMemo4, createContext as createContext2, useState as useState5, useId as useId2 } from "react";
|
|
6657
6651
|
import styled20 from "styled-components";
|
|
6658
6652
|
import { isNotUndefined as isNotUndefined4, isUndefined as isUndefined3 } from "@wistia/type-guards";
|
|
6659
6653
|
|
|
6660
6654
|
// src/components/Stack/Stack.tsx
|
|
6661
|
-
import { forwardRef as
|
|
6655
|
+
import { forwardRef as forwardRef7 } from "react";
|
|
6662
6656
|
import styled19 from "styled-components";
|
|
6663
6657
|
import { jsx as jsx177 } from "react/jsx-runtime";
|
|
6664
|
-
var
|
|
6658
|
+
var DEFAULT_ELEMENT2 = "div";
|
|
6665
6659
|
var StyledStack = styled19.div`
|
|
6666
6660
|
display: flex;
|
|
6667
6661
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
6668
6662
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
6669
6663
|
`;
|
|
6670
|
-
var StackComponent =
|
|
6664
|
+
var StackComponent = forwardRef7(
|
|
6671
6665
|
({ renderAs, direction = "vertical", gap = "space-02", ...props }, ref) => {
|
|
6672
6666
|
const responsiveGap = useResponsiveProp(gap);
|
|
6673
6667
|
const responsiveDirection = useResponsiveProp(direction);
|
|
@@ -6677,7 +6671,7 @@ var StackComponent = forwardRef8(
|
|
|
6677
6671
|
ref,
|
|
6678
6672
|
$direction: responsiveDirection,
|
|
6679
6673
|
$gap: responsiveGap,
|
|
6680
|
-
as: renderAs ??
|
|
6674
|
+
as: renderAs ?? DEFAULT_ELEMENT2,
|
|
6681
6675
|
...props
|
|
6682
6676
|
}
|
|
6683
6677
|
);
|
|
@@ -6775,7 +6769,7 @@ var FormComponent = ({ children, action, values = {}, validate, fullWidth = fals
|
|
|
6775
6769
|
);
|
|
6776
6770
|
};
|
|
6777
6771
|
FormComponent.displayName = "Form";
|
|
6778
|
-
var Form =
|
|
6772
|
+
var Form = forwardRef8(FormComponent);
|
|
6779
6773
|
|
|
6780
6774
|
// src/components/Form/useFormState.tsx
|
|
6781
6775
|
import { useCallback as useCallback5, useState as useState6 } from "react";
|
|
@@ -6857,7 +6851,7 @@ import styled23 from "styled-components";
|
|
|
6857
6851
|
import { isArray as isArray2, isNotNil as isNotNil8, isNotUndefined as isNotUndefined6, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
6858
6852
|
|
|
6859
6853
|
// src/components/Text/Text.tsx
|
|
6860
|
-
import { forwardRef as
|
|
6854
|
+
import { forwardRef as forwardRef9 } from "react";
|
|
6861
6855
|
import styled21, { css as css18 } from "styled-components";
|
|
6862
6856
|
import { jsx as jsx180 } from "react/jsx-runtime";
|
|
6863
6857
|
var bodyBoldStyles = css18`
|
|
@@ -6998,8 +6992,8 @@ var StyledText = styled21.div`
|
|
|
6998
6992
|
display: block;
|
|
6999
6993
|
`}
|
|
7000
6994
|
`;
|
|
7001
|
-
var
|
|
7002
|
-
var TextComponent =
|
|
6995
|
+
var DEFAULT_ELEMENT3 = "div";
|
|
6996
|
+
var TextComponent = forwardRef9(
|
|
7003
6997
|
({
|
|
7004
6998
|
align = "left",
|
|
7005
6999
|
colorScheme = "inherit",
|
|
@@ -7024,7 +7018,7 @@ var TextComponent = forwardRef10(
|
|
|
7024
7018
|
$preventUserSelect: preventUserSelect,
|
|
7025
7019
|
$prominence: prominence,
|
|
7026
7020
|
$variant: variant,
|
|
7027
|
-
as: renderAs ??
|
|
7021
|
+
as: renderAs ?? DEFAULT_ELEMENT3,
|
|
7028
7022
|
...otherProps
|
|
7029
7023
|
}
|
|
7030
7024
|
);
|
|
@@ -7213,7 +7207,7 @@ var RadioGroup = ({
|
|
|
7213
7207
|
RadioGroup.displayName = "RadioGroup";
|
|
7214
7208
|
|
|
7215
7209
|
// src/components/IconButton/IconButton.tsx
|
|
7216
|
-
import { Children as Children3, cloneElement as cloneElement4, forwardRef as
|
|
7210
|
+
import { Children as Children3, cloneElement as cloneElement4, forwardRef as forwardRef10 } from "react";
|
|
7217
7211
|
import styled24 from "styled-components";
|
|
7218
7212
|
import { jsx as jsx185 } from "react/jsx-runtime";
|
|
7219
7213
|
var StyledButton2 = styled24(Button)`
|
|
@@ -7230,7 +7224,7 @@ var StyledButton2 = styled24(Button)`
|
|
|
7230
7224
|
align-items: center;
|
|
7231
7225
|
line-height: 1;
|
|
7232
7226
|
`;
|
|
7233
|
-
var IconButton =
|
|
7227
|
+
var IconButton = forwardRef10(
|
|
7234
7228
|
({ children, label, size = "md", ...props }, ref) => {
|
|
7235
7229
|
const responsiveSize = useResponsiveProp(size);
|
|
7236
7230
|
return /* @__PURE__ */ jsx185(
|
|
@@ -7251,7 +7245,7 @@ var IconButton = forwardRef11(
|
|
|
7251
7245
|
IconButton.displayName = "IconButton";
|
|
7252
7246
|
|
|
7253
7247
|
// src/components/Input/Input.tsx
|
|
7254
|
-
import { forwardRef as
|
|
7248
|
+
import { forwardRef as forwardRef11, cloneElement as cloneElement5, useRef as useRef6 } from "react";
|
|
7255
7249
|
import styled25, { css as css19 } from "styled-components";
|
|
7256
7250
|
import { isNil as isNil10, isNotNil as isNotNil9 } from "@wistia/type-guards";
|
|
7257
7251
|
import { jsx as jsx186, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
@@ -7343,7 +7337,7 @@ var StyledInputContainer = styled25.div`
|
|
|
7343
7337
|
var isValidRef = (ref) => {
|
|
7344
7338
|
return typeof ref === "object" && ref !== null && "current" in ref && isNotNil9(ref.current);
|
|
7345
7339
|
};
|
|
7346
|
-
var Input =
|
|
7340
|
+
var Input = forwardRef11(
|
|
7347
7341
|
({
|
|
7348
7342
|
fullWidth = false,
|
|
7349
7343
|
monospace = false,
|
|
@@ -7617,7 +7611,7 @@ import {
|
|
|
7617
7611
|
import { isNotNil as isNotNil12 } from "@wistia/type-guards";
|
|
7618
7612
|
|
|
7619
7613
|
// src/components/Menu/MenuItemButton.tsx
|
|
7620
|
-
import { forwardRef as
|
|
7614
|
+
import { forwardRef as forwardRef12 } from "react";
|
|
7621
7615
|
import styled28 from "styled-components";
|
|
7622
7616
|
import { isNotNil as isNotNil11, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
|
|
7623
7617
|
import { jsx as jsx189, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
@@ -7689,7 +7683,7 @@ var StyledBadgeContainer = styled28.div`
|
|
|
7689
7683
|
font-size: var(--wui-typography-label-4-size);
|
|
7690
7684
|
color: var(--wui-color-text-secondary);
|
|
7691
7685
|
`;
|
|
7692
|
-
var MenuItemButton =
|
|
7686
|
+
var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...props }, ref) => {
|
|
7693
7687
|
let { colorScheme, badge } = props;
|
|
7694
7688
|
if (appearance === "dangerous") {
|
|
7695
7689
|
if (isNotUndefined8(colorScheme)) {
|
|
@@ -7813,10 +7807,10 @@ var SubMenu = ({
|
|
|
7813
7807
|
SubMenu.displayName = "SubMenu";
|
|
7814
7808
|
|
|
7815
7809
|
// src/components/Menu/MenuItem.tsx
|
|
7816
|
-
import { forwardRef as
|
|
7810
|
+
import { forwardRef as forwardRef13 } from "react";
|
|
7817
7811
|
import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
|
|
7818
7812
|
import { jsx as jsx192 } from "react/jsx-runtime";
|
|
7819
|
-
var MenuItem =
|
|
7813
|
+
var MenuItem = forwardRef13(
|
|
7820
7814
|
({ onSelect = () => null, ...props }, ref) => {
|
|
7821
7815
|
return /* @__PURE__ */ jsx192(
|
|
7822
7816
|
DropdownMenuItem2,
|
|
@@ -7973,7 +7967,7 @@ var CheckboxMenuItem = ({
|
|
|
7973
7967
|
CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
7974
7968
|
|
|
7975
7969
|
// src/components/Modal/Modal.tsx
|
|
7976
|
-
import { forwardRef as
|
|
7970
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
7977
7971
|
import styled36 from "styled-components";
|
|
7978
7972
|
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
7979
7973
|
import { isNotNil as isNotNil15 } from "@wistia/type-guards";
|
|
@@ -8056,7 +8050,7 @@ var ModalHeader = ({
|
|
|
8056
8050
|
};
|
|
8057
8051
|
|
|
8058
8052
|
// src/components/Modal/ModalContent.tsx
|
|
8059
|
-
import { forwardRef as
|
|
8053
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
8060
8054
|
import styled34 from "styled-components";
|
|
8061
8055
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
8062
8056
|
|
|
@@ -8121,7 +8115,7 @@ var StyledModalContent = styled34(DialogContent)`
|
|
|
8121
8115
|
}
|
|
8122
8116
|
}
|
|
8123
8117
|
`;
|
|
8124
|
-
var ModalContent =
|
|
8118
|
+
var ModalContent = forwardRef14(
|
|
8125
8119
|
({ fullHeight, width, children, ...otherProps }, ref) => {
|
|
8126
8120
|
useFocusRestore();
|
|
8127
8121
|
return /* @__PURE__ */ jsx199(
|
|
@@ -8130,7 +8124,6 @@ var ModalContent = forwardRef15(
|
|
|
8130
8124
|
ref,
|
|
8131
8125
|
$fullHeight: fullHeight,
|
|
8132
8126
|
$width: width,
|
|
8133
|
-
"aria-describedby": void 0,
|
|
8134
8127
|
...otherProps,
|
|
8135
8128
|
children
|
|
8136
8129
|
}
|
|
@@ -8139,7 +8132,7 @@ var ModalContent = forwardRef15(
|
|
|
8139
8132
|
);
|
|
8140
8133
|
|
|
8141
8134
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
8142
|
-
import { forwardRef as
|
|
8135
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
8143
8136
|
import styled35 from "styled-components";
|
|
8144
8137
|
import { jsx as jsx200 } from "react/jsx-runtime";
|
|
8145
8138
|
var backdropAnimationDuration = 150;
|
|
@@ -8177,7 +8170,7 @@ var BackdropComponent = styled35.div`
|
|
|
8177
8170
|
}
|
|
8178
8171
|
}
|
|
8179
8172
|
`;
|
|
8180
|
-
var Backdrop =
|
|
8173
|
+
var Backdrop = forwardRef15(
|
|
8181
8174
|
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx200(
|
|
8182
8175
|
BackdropComponent,
|
|
8183
8176
|
{
|
|
@@ -8198,7 +8191,7 @@ var ModalBody = styled36.div`
|
|
|
8198
8191
|
display: flex;
|
|
8199
8192
|
order: 2;
|
|
8200
8193
|
`;
|
|
8201
|
-
var Modal =
|
|
8194
|
+
var Modal = forwardRef16(
|
|
8202
8195
|
({
|
|
8203
8196
|
children,
|
|
8204
8197
|
fullHeight = false,
|
|
@@ -8226,6 +8219,7 @@ var Modal = forwardRef17(
|
|
|
8226
8219
|
ModalContent,
|
|
8227
8220
|
{
|
|
8228
8221
|
ref,
|
|
8222
|
+
"aria-describedby": void 0,
|
|
8229
8223
|
fullHeight,
|
|
8230
8224
|
onOpenAutoFocus: (event) => {
|
|
8231
8225
|
if (isNotNil15(initialFocusRef) && initialFocusRef.current) {
|
|
@@ -8258,7 +8252,7 @@ var Modal = forwardRef17(
|
|
|
8258
8252
|
Modal.displayName = "Modal";
|
|
8259
8253
|
|
|
8260
8254
|
// src/components/Radio/Radio.tsx
|
|
8261
|
-
import { forwardRef as
|
|
8255
|
+
import { forwardRef as forwardRef17, useId as useId3 } from "react";
|
|
8262
8256
|
import styled37, { css as css21 } from "styled-components";
|
|
8263
8257
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
8264
8258
|
import { jsx as jsx202, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
@@ -8332,7 +8326,7 @@ var StyledRadioWrapper = styled37.div`
|
|
|
8332
8326
|
|
|
8333
8327
|
${({ disabled }) => disabled && disabledStyle2};
|
|
8334
8328
|
`;
|
|
8335
|
-
var Radio =
|
|
8329
|
+
var Radio = forwardRef17(
|
|
8336
8330
|
({
|
|
8337
8331
|
checked,
|
|
8338
8332
|
disabled = false,
|
|
@@ -8388,7 +8382,7 @@ var Radio = forwardRef18(
|
|
|
8388
8382
|
Radio.displayName = "Radio";
|
|
8389
8383
|
|
|
8390
8384
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
8391
|
-
import { forwardRef as
|
|
8385
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
8392
8386
|
import styled38 from "styled-components";
|
|
8393
8387
|
import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
|
|
8394
8388
|
import { isNil as isNil11 } from "@wistia/type-guards";
|
|
@@ -8401,7 +8395,7 @@ var StyledSegmentedControl = styled38(ToggleGroupRoot)`
|
|
|
8401
8395
|
gap: var(--wui-space-01);
|
|
8402
8396
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
8403
8397
|
`;
|
|
8404
|
-
var SegmentedControl =
|
|
8398
|
+
var SegmentedControl = forwardRef18(
|
|
8405
8399
|
({
|
|
8406
8400
|
children,
|
|
8407
8401
|
disabled = false,
|
|
@@ -8433,7 +8427,7 @@ var SegmentedControl = forwardRef19(
|
|
|
8433
8427
|
SegmentedControl.displayName = "SegmentedControl";
|
|
8434
8428
|
|
|
8435
8429
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
8436
|
-
import { forwardRef as
|
|
8430
|
+
import { forwardRef as forwardRef19 } from "react";
|
|
8437
8431
|
import styled39 from "styled-components";
|
|
8438
8432
|
import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
8439
8433
|
import { isNotNil as isNotNil16 } from "@wistia/type-guards";
|
|
@@ -8490,7 +8484,7 @@ var StyledSegmentedControlItem = styled39(ToggleGroupItem)`
|
|
|
8490
8484
|
}
|
|
8491
8485
|
}
|
|
8492
8486
|
`;
|
|
8493
|
-
var SegmentedControlItem =
|
|
8487
|
+
var SegmentedControlItem = forwardRef19(
|
|
8494
8488
|
({ disabled, icon, label, "aria-label": ariaLabel, value }, ref) => {
|
|
8495
8489
|
const handleClick = (event) => {
|
|
8496
8490
|
const target = event.target;
|
|
@@ -8519,7 +8513,7 @@ var SegmentedControlItem = forwardRef20(
|
|
|
8519
8513
|
SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
8520
8514
|
|
|
8521
8515
|
// src/components/Tag/Tag.tsx
|
|
8522
|
-
import { forwardRef as
|
|
8516
|
+
import { forwardRef as forwardRef20 } from "react";
|
|
8523
8517
|
import styled40 from "styled-components";
|
|
8524
8518
|
import { isNil as isNil12, isNotNil as isNotNil17, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
8525
8519
|
import { Fragment as Fragment3, jsx as jsx204, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
@@ -8625,7 +8619,7 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
8625
8619
|
)
|
|
8626
8620
|
] });
|
|
8627
8621
|
};
|
|
8628
|
-
var Tag =
|
|
8622
|
+
var Tag = forwardRef20(
|
|
8629
8623
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
8630
8624
|
const labelProps = isNotNil17(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
|
|
8631
8625
|
return /* @__PURE__ */ jsxs24(
|
|
@@ -8886,7 +8880,7 @@ import {
|
|
|
8886
8880
|
Value,
|
|
8887
8881
|
ScrollDownButton
|
|
8888
8882
|
} from "@radix-ui/react-select";
|
|
8889
|
-
import { forwardRef as
|
|
8883
|
+
import { forwardRef as forwardRef21 } from "react";
|
|
8890
8884
|
import styled43 from "styled-components";
|
|
8891
8885
|
import { jsx as jsx207, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
8892
8886
|
var StyledTrigger = styled43(Trigger2)`
|
|
@@ -8946,7 +8940,7 @@ var StyledContent2 = styled43(Content2)`
|
|
|
8946
8940
|
padding: var(--wui-select-option-padding);
|
|
8947
8941
|
min-width: 200px;
|
|
8948
8942
|
`;
|
|
8949
|
-
var Select =
|
|
8943
|
+
var Select = forwardRef21(
|
|
8950
8944
|
({
|
|
8951
8945
|
colorScheme = "inherit",
|
|
8952
8946
|
children,
|
|
@@ -8995,7 +8989,7 @@ Select.displayName = "Select";
|
|
|
8995
8989
|
|
|
8996
8990
|
// src/components/Select/SelectOption.tsx
|
|
8997
8991
|
import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
8998
|
-
import { forwardRef as
|
|
8992
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
8999
8993
|
import styled44 from "styled-components";
|
|
9000
8994
|
import { jsx as jsx208, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
9001
8995
|
var StyledItem = styled44(Item)`
|
|
@@ -9024,7 +9018,7 @@ var StyledItem = styled44(Item)`
|
|
|
9024
9018
|
var StyledIconContainer = styled44.span`
|
|
9025
9019
|
width: 12px;
|
|
9026
9020
|
`;
|
|
9027
|
-
var SelectOption =
|
|
9021
|
+
var SelectOption = forwardRef22(
|
|
9028
9022
|
({ children, ...props }, forwardedRef) => {
|
|
9029
9023
|
return /* @__PURE__ */ jsxs28(
|
|
9030
9024
|
StyledItem,
|