@wistia/ui 0.8.25 → 0.8.26-beta.0dc49b0d.eceffc5
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 +13 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.mjs +62 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1668,7 +1668,7 @@ declare const Icon: {
|
|
|
1668
1668
|
|
|
1669
1669
|
type IconButtonProps = {
|
|
1670
1670
|
/**
|
|
1671
|
-
* Accessible text for screen readers.
|
|
1671
|
+
* Accessible text for screen readers.
|
|
1672
1672
|
*/
|
|
1673
1673
|
label: string;
|
|
1674
1674
|
/**
|
|
@@ -1682,7 +1682,7 @@ type IconButtonProps = {
|
|
|
1682
1682
|
*/
|
|
1683
1683
|
declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
1684
1684
|
/**
|
|
1685
|
-
* Accessible text for screen readers.
|
|
1685
|
+
* Accessible text for screen readers.
|
|
1686
1686
|
*/
|
|
1687
1687
|
label: string;
|
|
1688
1688
|
/**
|
|
@@ -1691,7 +1691,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
1691
1691
|
children: JSX.Element;
|
|
1692
1692
|
} & Omit<ButtonAsButtonProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref"> | Omit<{
|
|
1693
1693
|
/**
|
|
1694
|
-
* Accessible text for screen readers.
|
|
1694
|
+
* Accessible text for screen readers.
|
|
1695
1695
|
*/
|
|
1696
1696
|
label: string;
|
|
1697
1697
|
/**
|
|
@@ -2242,9 +2242,9 @@ declare const MenuItemLabel: ({ children }: MenuItemLabelProps) => react_jsx_run
|
|
|
2242
2242
|
declare const MenuItemDescription: ({ children }: MenuItemDescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
2243
2243
|
|
|
2244
2244
|
type MenuRadioGroupProps = DropdownMenuRadioGroupProps & {
|
|
2245
|
-
/**
|
|
2246
|
-
|
|
2247
|
-
|
|
2245
|
+
/**
|
|
2246
|
+
* The radio items
|
|
2247
|
+
*/
|
|
2248
2248
|
children: ReactNode | ReactNode[];
|
|
2249
2249
|
/**
|
|
2250
2250
|
* @ignore
|
|
@@ -2252,7 +2252,7 @@ type MenuRadioGroupProps = DropdownMenuRadioGroupProps & {
|
|
|
2252
2252
|
asChild?: never;
|
|
2253
2253
|
};
|
|
2254
2254
|
declare const MenuRadioGroup: {
|
|
2255
|
-
({ children,
|
|
2255
|
+
({ children, ...props }: MenuRadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
2256
2256
|
displayName: string;
|
|
2257
2257
|
};
|
|
2258
2258
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1668,7 +1668,7 @@ declare const Icon: {
|
|
|
1668
1668
|
|
|
1669
1669
|
type IconButtonProps = {
|
|
1670
1670
|
/**
|
|
1671
|
-
* Accessible text for screen readers.
|
|
1671
|
+
* Accessible text for screen readers.
|
|
1672
1672
|
*/
|
|
1673
1673
|
label: string;
|
|
1674
1674
|
/**
|
|
@@ -1682,7 +1682,7 @@ type IconButtonProps = {
|
|
|
1682
1682
|
*/
|
|
1683
1683
|
declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
1684
1684
|
/**
|
|
1685
|
-
* Accessible text for screen readers.
|
|
1685
|
+
* Accessible text for screen readers.
|
|
1686
1686
|
*/
|
|
1687
1687
|
label: string;
|
|
1688
1688
|
/**
|
|
@@ -1691,7 +1691,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
1691
1691
|
children: JSX.Element;
|
|
1692
1692
|
} & Omit<ButtonAsButtonProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref"> | Omit<{
|
|
1693
1693
|
/**
|
|
1694
|
-
* Accessible text for screen readers.
|
|
1694
|
+
* Accessible text for screen readers.
|
|
1695
1695
|
*/
|
|
1696
1696
|
label: string;
|
|
1697
1697
|
/**
|
|
@@ -2242,9 +2242,9 @@ declare const MenuItemLabel: ({ children }: MenuItemLabelProps) => react_jsx_run
|
|
|
2242
2242
|
declare const MenuItemDescription: ({ children }: MenuItemDescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
2243
2243
|
|
|
2244
2244
|
type MenuRadioGroupProps = DropdownMenuRadioGroupProps & {
|
|
2245
|
-
/**
|
|
2246
|
-
|
|
2247
|
-
|
|
2245
|
+
/**
|
|
2246
|
+
* The radio items
|
|
2247
|
+
*/
|
|
2248
2248
|
children: ReactNode | ReactNode[];
|
|
2249
2249
|
/**
|
|
2250
2250
|
* @ignore
|
|
@@ -2252,7 +2252,7 @@ type MenuRadioGroupProps = DropdownMenuRadioGroupProps & {
|
|
|
2252
2252
|
asChild?: never;
|
|
2253
2253
|
};
|
|
2254
2254
|
declare const MenuRadioGroup: {
|
|
2255
|
-
({ children,
|
|
2255
|
+
({ children, ...props }: MenuRadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
2256
2256
|
displayName: string;
|
|
2257
2257
|
};
|
|
2258
2258
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.8.
|
|
3
|
+
* @license @wistia/ui v0.8.26-beta.0dc49b0d.eceffc5
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -8369,6 +8369,11 @@ Checkbox.displayName = "Checkbox";
|
|
|
8369
8369
|
|
|
8370
8370
|
// src/components/ClickRegion/ClickRegion.tsx
|
|
8371
8371
|
import { Children as Children3, cloneElement as cloneElement3, useCallback as useCallback8, useEffect as useEffect8 } from "react";
|
|
8372
|
+
var isClickableElement = (element) => {
|
|
8373
|
+
if (!element) return false;
|
|
8374
|
+
const el = element;
|
|
8375
|
+
return el.closest("button") !== null || el.closest("a") !== null || el.closest("input") !== null || el.closest("select") !== null || el.closest("textarea") !== null || el.closest("label") !== null || el.closest("[data-wui-faux-input]") !== null;
|
|
8376
|
+
};
|
|
8372
8377
|
var ClickRegion = ({ children, targetRef }) => {
|
|
8373
8378
|
useEffect8(() => {
|
|
8374
8379
|
if (targetRef.current && targetRef.current.tagName === "A") {
|
|
@@ -8381,7 +8386,10 @@ var ClickRegion = ({ children, targetRef }) => {
|
|
|
8381
8386
|
const handleClick = useCallback8(
|
|
8382
8387
|
(event) => {
|
|
8383
8388
|
const node = targetRef.current;
|
|
8384
|
-
if (event.target
|
|
8389
|
+
if (event.target === node) {
|
|
8390
|
+
return;
|
|
8391
|
+
}
|
|
8392
|
+
if (isClickableElement(event.target) && event.target !== node) {
|
|
8385
8393
|
event.stopPropagation();
|
|
8386
8394
|
return;
|
|
8387
8395
|
}
|
|
@@ -10365,6 +10373,7 @@ var Menu = ({
|
|
|
10365
10373
|
...props,
|
|
10366
10374
|
$compact: compact,
|
|
10367
10375
|
align,
|
|
10376
|
+
collisionPadding: 8,
|
|
10368
10377
|
sideOffset: 6,
|
|
10369
10378
|
onFocusOutside: (event) => {
|
|
10370
10379
|
event.preventDefault();
|
|
@@ -10653,12 +10662,9 @@ MenuItem.displayName = "MenuItem";
|
|
|
10653
10662
|
import {
|
|
10654
10663
|
DropdownMenuRadioGroup
|
|
10655
10664
|
} from "@radix-ui/react-dropdown-menu";
|
|
10656
|
-
import { jsx as jsx238
|
|
10657
|
-
var MenuRadioGroup = ({ children,
|
|
10658
|
-
return /* @__PURE__ */
|
|
10659
|
-
/* @__PURE__ */ jsx238(MenuLabel, { children: label }),
|
|
10660
|
-
children
|
|
10661
|
-
] });
|
|
10665
|
+
import { jsx as jsx238 } from "react/jsx-runtime";
|
|
10666
|
+
var MenuRadioGroup = ({ children, ...props }) => {
|
|
10667
|
+
return /* @__PURE__ */ jsx238(DropdownMenuRadioGroup, { ...props, children });
|
|
10662
10668
|
};
|
|
10663
10669
|
MenuRadioGroup.displayName = "MenuRadioGroup";
|
|
10664
10670
|
|
|
@@ -10705,9 +10711,9 @@ import {
|
|
|
10705
10711
|
DropdownMenuItemIndicator as DropdownMenuItemIndicator2
|
|
10706
10712
|
} from "@radix-ui/react-dropdown-menu";
|
|
10707
10713
|
import { isNotNil as isNotNil22 } from "@wistia/type-guards";
|
|
10708
|
-
import { jsx as jsx240, jsxs as
|
|
10714
|
+
import { jsx as jsx240, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
10709
10715
|
var CheckboxIndicator = ({ checked, ...props }) => {
|
|
10710
|
-
return checked ? /* @__PURE__ */
|
|
10716
|
+
return checked ? /* @__PURE__ */ jsxs29(
|
|
10711
10717
|
"svg",
|
|
10712
10718
|
{
|
|
10713
10719
|
...props,
|
|
@@ -10733,7 +10739,7 @@ var CheckboxIndicator = ({ checked, ...props }) => {
|
|
|
10733
10739
|
)
|
|
10734
10740
|
]
|
|
10735
10741
|
}
|
|
10736
|
-
) : /* @__PURE__ */
|
|
10742
|
+
) : /* @__PURE__ */ jsxs29(
|
|
10737
10743
|
"svg",
|
|
10738
10744
|
{
|
|
10739
10745
|
...props,
|
|
@@ -10817,7 +10823,7 @@ var ModalCloseButton = () => {
|
|
|
10817
10823
|
};
|
|
10818
10824
|
|
|
10819
10825
|
// src/components/Modal/ModalHeader.tsx
|
|
10820
|
-
import { jsx as jsx242, jsxs as
|
|
10826
|
+
import { jsx as jsx242, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
10821
10827
|
var Header = styled46.header`
|
|
10822
10828
|
display: flex;
|
|
10823
10829
|
order: 1;
|
|
@@ -10841,7 +10847,7 @@ var ModalHeader = ({
|
|
|
10841
10847
|
hideCloseButton
|
|
10842
10848
|
}) => {
|
|
10843
10849
|
const TitleComponent = hideTitle ? /* @__PURE__ */ jsx242(ScreenReaderOnly, { children: /* @__PURE__ */ jsx242(Title, { children: title }) }) : /* @__PURE__ */ jsx242(Title, { children: title });
|
|
10844
|
-
return /* @__PURE__ */
|
|
10850
|
+
return /* @__PURE__ */ jsxs30(Header, { $hideTitle: hideTitle, children: [
|
|
10845
10851
|
TitleComponent,
|
|
10846
10852
|
hideCloseButton ? null : /* @__PURE__ */ jsx242(ModalCloseButton, {})
|
|
10847
10853
|
] });
|
|
@@ -11026,7 +11032,7 @@ var Backdrop = forwardRef18(
|
|
|
11026
11032
|
Backdrop.displayName = "Backdrop";
|
|
11027
11033
|
|
|
11028
11034
|
// src/components/Modal/Modal.tsx
|
|
11029
|
-
import { jsx as jsx245, jsxs as
|
|
11035
|
+
import { jsx as jsx245, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
11030
11036
|
var DEFAULT_MODAL_WIDTH = "532px";
|
|
11031
11037
|
var ModalBody = styled49.div`
|
|
11032
11038
|
flex-direction: column;
|
|
@@ -11058,9 +11064,9 @@ var Modal = forwardRef19(
|
|
|
11058
11064
|
}
|
|
11059
11065
|
},
|
|
11060
11066
|
open: isOpen,
|
|
11061
|
-
children: /* @__PURE__ */
|
|
11067
|
+
children: /* @__PURE__ */ jsxs31(DialogPortal, { children: [
|
|
11062
11068
|
/* @__PURE__ */ jsx245(Backdrop, {}),
|
|
11063
|
-
/* @__PURE__ */
|
|
11069
|
+
/* @__PURE__ */ jsxs31(
|
|
11064
11070
|
ModalContent,
|
|
11065
11071
|
{
|
|
11066
11072
|
ref,
|
|
@@ -11110,7 +11116,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
11110
11116
|
// src/components/Popover/PopoverArrow.tsx
|
|
11111
11117
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
11112
11118
|
import styled50, { css as css31, keyframes as keyframes4 } from "styled-components";
|
|
11113
|
-
import { jsx as jsx246, jsxs as
|
|
11119
|
+
import { jsx as jsx246, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
11114
11120
|
var StyledPath = styled50.path`
|
|
11115
11121
|
fill: var(--wui-color-border-secondary);
|
|
11116
11122
|
`;
|
|
@@ -11149,7 +11155,7 @@ var StyledCircle = styled50.circle`
|
|
|
11149
11155
|
}
|
|
11150
11156
|
`;
|
|
11151
11157
|
var PopoverArrow = ({ isAnimated }) => {
|
|
11152
|
-
return /* @__PURE__ */ jsx246(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */
|
|
11158
|
+
return /* @__PURE__ */ jsx246(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs32(
|
|
11153
11159
|
"svg",
|
|
11154
11160
|
{
|
|
11155
11161
|
fill: "none",
|
|
@@ -11188,7 +11194,7 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
11188
11194
|
PopoverArrow.displayName = "PopoverArrow";
|
|
11189
11195
|
|
|
11190
11196
|
// src/components/Popover/Popover.tsx
|
|
11191
|
-
import { jsx as jsx247, jsxs as
|
|
11197
|
+
import { jsx as jsx247, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
11192
11198
|
var StyledContent2 = styled51(Content2)`
|
|
11193
11199
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
11194
11200
|
${({ $unstyled }) => !$unstyled && css32`
|
|
@@ -11227,9 +11233,9 @@ var Popover = ({
|
|
|
11227
11233
|
"--wui-popover-max-width": maxWidth,
|
|
11228
11234
|
"--wui-popover-max-height": maxHeight
|
|
11229
11235
|
};
|
|
11230
|
-
return /* @__PURE__ */
|
|
11236
|
+
return /* @__PURE__ */ jsxs33(Root, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
11231
11237
|
/* @__PURE__ */ jsx247(Trigger2, { asChild: true, children: trigger }),
|
|
11232
|
-
/* @__PURE__ */ jsx247(Portal, { children: /* @__PURE__ */
|
|
11238
|
+
/* @__PURE__ */ jsx247(Portal, { children: /* @__PURE__ */ jsxs33(
|
|
11233
11239
|
StyledContent2,
|
|
11234
11240
|
{
|
|
11235
11241
|
$colorScheme: colorScheme,
|
|
@@ -11260,7 +11266,7 @@ Popover.displayName = "Popover";
|
|
|
11260
11266
|
import styled52 from "styled-components";
|
|
11261
11267
|
import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
|
|
11262
11268
|
import { isNotNil as isNotNil26 } from "@wistia/type-guards";
|
|
11263
|
-
import { jsx as jsx248, jsxs as
|
|
11269
|
+
import { jsx as jsx248, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
11264
11270
|
var ProgressBarWrapper = styled52.div`
|
|
11265
11271
|
--progress-bar-height: 8px;
|
|
11266
11272
|
--progress-bar-indicator-color: var(--wui-color-bg-fill);
|
|
@@ -11313,7 +11319,7 @@ var ProgressBar = ({
|
|
|
11313
11319
|
labelRight,
|
|
11314
11320
|
...props
|
|
11315
11321
|
}) => {
|
|
11316
|
-
return /* @__PURE__ */
|
|
11322
|
+
return /* @__PURE__ */ jsxs34(ProgressBarWrapper, { children: [
|
|
11317
11323
|
isNotNil26(labelLeft) ? /* @__PURE__ */ jsx248(ProgressBarLabel, { children: labelLeft }) : null,
|
|
11318
11324
|
/* @__PURE__ */ jsx248(
|
|
11319
11325
|
StyledProgressBar,
|
|
@@ -11339,7 +11345,7 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
11339
11345
|
import { forwardRef as forwardRef20, useId as useId3 } from "react";
|
|
11340
11346
|
import styled53, { css as css33 } from "styled-components";
|
|
11341
11347
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
11342
|
-
import { jsx as jsx249, jsxs as
|
|
11348
|
+
import { jsx as jsx249, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
11343
11349
|
var RadioIcon = () => /* @__PURE__ */ jsx249(
|
|
11344
11350
|
"svg",
|
|
11345
11351
|
{
|
|
@@ -11456,7 +11462,7 @@ var Radio = forwardRef20(
|
|
|
11456
11462
|
}, ref) => {
|
|
11457
11463
|
const generatedId = useId3();
|
|
11458
11464
|
const computedId = isNonEmptyString3(id) ? id : `wistia-ui-radio-${generatedId}`;
|
|
11459
|
-
return /* @__PURE__ */
|
|
11465
|
+
return /* @__PURE__ */ jsxs35(
|
|
11460
11466
|
StyledRadioWrapper,
|
|
11461
11467
|
{
|
|
11462
11468
|
$disabled: disabled,
|
|
@@ -11583,7 +11589,7 @@ var SelectedItemIndicator = () => {
|
|
|
11583
11589
|
};
|
|
11584
11590
|
|
|
11585
11591
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
11586
|
-
import { jsx as jsx252, jsxs as
|
|
11592
|
+
import { jsx as jsx252, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
11587
11593
|
var segmentedControlStyles = css34`
|
|
11588
11594
|
display: inline-flex;
|
|
11589
11595
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -11622,7 +11628,7 @@ var SegmentedControl = forwardRef21(
|
|
|
11622
11628
|
type: "single",
|
|
11623
11629
|
value: selectedValue,
|
|
11624
11630
|
...props,
|
|
11625
|
-
children: /* @__PURE__ */ jsx252(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */
|
|
11631
|
+
children: /* @__PURE__ */ jsx252(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs36(SelectedItemStyleProvider, { children: [
|
|
11626
11632
|
/* @__PURE__ */ jsx252(SelectedItemIndicator, {}),
|
|
11627
11633
|
children
|
|
11628
11634
|
] }) })
|
|
@@ -11637,7 +11643,7 @@ import { forwardRef as forwardRef22, useEffect as useEffect11, useRef as useRef1
|
|
|
11637
11643
|
import styled56, { css as css35 } from "styled-components";
|
|
11638
11644
|
import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
11639
11645
|
import { isNotNil as isNotNil27 } from "@wistia/type-guards";
|
|
11640
|
-
import { jsxs as
|
|
11646
|
+
import { jsxs as jsxs37 } from "react/jsx-runtime";
|
|
11641
11647
|
var segmentedControlItemStyles = css35`
|
|
11642
11648
|
all: unset; /* ToggleGroupItem is a button element */
|
|
11643
11649
|
align-items: center;
|
|
@@ -11739,7 +11745,7 @@ var SegmentedControlItem = forwardRef22(
|
|
|
11739
11745
|
resizeObserver.disconnect();
|
|
11740
11746
|
};
|
|
11741
11747
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
11742
|
-
return /* @__PURE__ */
|
|
11748
|
+
return /* @__PURE__ */ jsxs37(
|
|
11743
11749
|
StyledSegmentedControlItem,
|
|
11744
11750
|
{
|
|
11745
11751
|
ref: combinedRef,
|
|
@@ -11771,7 +11777,7 @@ import {
|
|
|
11771
11777
|
} from "@radix-ui/react-select";
|
|
11772
11778
|
import { forwardRef as forwardRef23 } from "react";
|
|
11773
11779
|
import styled57 from "styled-components";
|
|
11774
|
-
import { jsx as jsx253, jsxs as
|
|
11780
|
+
import { jsx as jsx253, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
11775
11781
|
var StyledTrigger = styled57(Trigger3)`
|
|
11776
11782
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
11777
11783
|
${inputCssVariables};
|
|
@@ -11844,13 +11850,13 @@ var Select = forwardRef23(
|
|
|
11844
11850
|
...props
|
|
11845
11851
|
}, forwardedRef) => {
|
|
11846
11852
|
const responsiveFullWidth = useResponsiveProp(fullWidth);
|
|
11847
|
-
return /* @__PURE__ */
|
|
11853
|
+
return /* @__PURE__ */ jsxs38(
|
|
11848
11854
|
Root2,
|
|
11849
11855
|
{
|
|
11850
11856
|
...props,
|
|
11851
11857
|
onValueChange: onChange,
|
|
11852
11858
|
children: [
|
|
11853
|
-
/* @__PURE__ */
|
|
11859
|
+
/* @__PURE__ */ jsxs38(
|
|
11854
11860
|
StyledTrigger,
|
|
11855
11861
|
{
|
|
11856
11862
|
ref: forwardedRef,
|
|
@@ -11869,7 +11875,7 @@ var Select = forwardRef23(
|
|
|
11869
11875
|
]
|
|
11870
11876
|
}
|
|
11871
11877
|
),
|
|
11872
|
-
/* @__PURE__ */ jsx253(Portal2, { children: /* @__PURE__ */
|
|
11878
|
+
/* @__PURE__ */ jsx253(Portal2, { children: /* @__PURE__ */ jsxs38(StyledContent3, { position: "popper", children: [
|
|
11873
11879
|
/* @__PURE__ */ jsx253(ScrollUpButton, { children: /* @__PURE__ */ jsx253(Icon, { type: "caret-up" }) }),
|
|
11874
11880
|
/* @__PURE__ */ jsx253(Viewport, { children }),
|
|
11875
11881
|
/* @__PURE__ */ jsx253(ScrollDownButton, { children: /* @__PURE__ */ jsx253(Icon, { type: "caret-down" }) })
|
|
@@ -11886,7 +11892,7 @@ import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
|
11886
11892
|
import { forwardRef as forwardRef24 } from "react";
|
|
11887
11893
|
import styled58 from "styled-components";
|
|
11888
11894
|
import { isNotNil as isNotNil28 } from "@wistia/type-guards";
|
|
11889
|
-
import { jsx as jsx254, jsxs as
|
|
11895
|
+
import { jsx as jsx254, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
11890
11896
|
var StyledItem = styled58(Item)`
|
|
11891
11897
|
${variantStyleMap2.body3};
|
|
11892
11898
|
display: flex;
|
|
@@ -11916,7 +11922,7 @@ var StyledIconContainer = styled58.span`
|
|
|
11916
11922
|
`;
|
|
11917
11923
|
var SelectOption = forwardRef24(
|
|
11918
11924
|
({ children, selectedDisplayValue, ...props }, forwardedRef) => {
|
|
11919
|
-
return /* @__PURE__ */
|
|
11925
|
+
return /* @__PURE__ */ jsxs39(
|
|
11920
11926
|
StyledItem,
|
|
11921
11927
|
{
|
|
11922
11928
|
...props,
|
|
@@ -11929,7 +11935,7 @@ var SelectOption = forwardRef24(
|
|
|
11929
11935
|
type: "checkmark"
|
|
11930
11936
|
}
|
|
11931
11937
|
) }) }),
|
|
11932
|
-
isNotNil28(selectedDisplayValue) ? /* @__PURE__ */
|
|
11938
|
+
isNotNil28(selectedDisplayValue) ? /* @__PURE__ */ jsxs39("div", { children: [
|
|
11933
11939
|
children,
|
|
11934
11940
|
/* @__PURE__ */ jsx254("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx254(ItemText, { children: selectedDisplayValue }) })
|
|
11935
11941
|
] }) : /* @__PURE__ */ jsx254(ItemText, { children })
|
|
@@ -11943,12 +11949,12 @@ SelectOption.displayName = "SelectOption";
|
|
|
11943
11949
|
// src/components/Select/SelectOptionGroup.tsx
|
|
11944
11950
|
import { Group, Label as Label3 } from "@radix-ui/react-select";
|
|
11945
11951
|
import styled59 from "styled-components";
|
|
11946
|
-
import { jsx as jsx255, jsxs as
|
|
11952
|
+
import { jsx as jsx255, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
11947
11953
|
var StyledLabel4 = styled59(Label3)`
|
|
11948
11954
|
padding: var(--wui-select-option-padding);
|
|
11949
11955
|
`;
|
|
11950
11956
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
11951
|
-
return /* @__PURE__ */
|
|
11957
|
+
return /* @__PURE__ */ jsxs40(Group, { ...props, children: [
|
|
11952
11958
|
/* @__PURE__ */ jsx255(StyledLabel4, { children: /* @__PURE__ */ jsx255(
|
|
11953
11959
|
Text,
|
|
11954
11960
|
{
|
|
@@ -11965,7 +11971,7 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
|
11965
11971
|
import { forwardRef as forwardRef25, useId as useId4 } from "react";
|
|
11966
11972
|
import styled60, { css as css36 } from "styled-components";
|
|
11967
11973
|
import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
11968
|
-
import { jsx as jsx256, jsxs as
|
|
11974
|
+
import { jsx as jsx256, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
11969
11975
|
var sizeSmall3 = css36`
|
|
11970
11976
|
--wui-size-small-width: 24px;
|
|
11971
11977
|
--wui-size-small-height: 14px;
|
|
@@ -12084,7 +12090,7 @@ var Switch = forwardRef25(
|
|
|
12084
12090
|
}, ref) => {
|
|
12085
12091
|
const generatedId = useId4();
|
|
12086
12092
|
const computedId = isNonEmptyString4(id) ? id : `wistia-ui-switch-${generatedId}`;
|
|
12087
|
-
return /* @__PURE__ */
|
|
12093
|
+
return /* @__PURE__ */ jsxs41(StyledSwitchWrapper, { $disabled: disabled, children: [
|
|
12088
12094
|
/* @__PURE__ */ jsx256(
|
|
12089
12095
|
StyledHiddenSwitchInput,
|
|
12090
12096
|
{
|
|
@@ -12309,7 +12315,7 @@ var useTabsValue = () => {
|
|
|
12309
12315
|
};
|
|
12310
12316
|
|
|
12311
12317
|
// src/components/Tabs/TabItem.tsx
|
|
12312
|
-
import { jsxs as
|
|
12318
|
+
import { jsxs as jsxs42 } from "react/jsx-runtime";
|
|
12313
12319
|
var StyledTabItem = styled69(RadixTab)`
|
|
12314
12320
|
${segmentedControlItemStyles}
|
|
12315
12321
|
|
|
@@ -12348,7 +12354,7 @@ var TabItem = forwardRef26(
|
|
|
12348
12354
|
resizeObserver.disconnect();
|
|
12349
12355
|
};
|
|
12350
12356
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
12351
|
-
return /* @__PURE__ */
|
|
12357
|
+
return /* @__PURE__ */ jsxs42(
|
|
12352
12358
|
StyledTabItem,
|
|
12353
12359
|
{
|
|
12354
12360
|
ref: combinedRef,
|
|
@@ -12406,7 +12412,7 @@ var SelectedItemIndicator2 = () => {
|
|
|
12406
12412
|
};
|
|
12407
12413
|
|
|
12408
12414
|
// src/components/Tabs/Tabs.tsx
|
|
12409
|
-
import { jsx as jsx266, jsxs as
|
|
12415
|
+
import { jsx as jsx266, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
12410
12416
|
var TabsContainer = styled71.div`
|
|
12411
12417
|
display: flex;
|
|
12412
12418
|
flex-direction: column;
|
|
@@ -12449,8 +12455,8 @@ var Tabs = forwardRef27(
|
|
|
12449
12455
|
activationMode: "automatic",
|
|
12450
12456
|
...props,
|
|
12451
12457
|
...modeProps,
|
|
12452
|
-
children: /* @__PURE__ */ jsx266(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */
|
|
12453
|
-
/* @__PURE__ */
|
|
12458
|
+
children: /* @__PURE__ */ jsx266(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs43(SelectedItemStyleProvider, { children: [
|
|
12459
|
+
/* @__PURE__ */ jsxs43(
|
|
12454
12460
|
TabList,
|
|
12455
12461
|
{
|
|
12456
12462
|
ariaLabel,
|
|
@@ -12532,7 +12538,7 @@ Tab.displayName = "Tab";
|
|
|
12532
12538
|
import { forwardRef as forwardRef29 } from "react";
|
|
12533
12539
|
import styled72 from "styled-components";
|
|
12534
12540
|
import { isNil as isNil16, isNotNil as isNotNil31, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
|
|
12535
|
-
import { Fragment as Fragment8, jsx as jsx268, jsxs as
|
|
12541
|
+
import { Fragment as Fragment8, jsx as jsx268, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
12536
12542
|
var TagLabel = styled72.a`
|
|
12537
12543
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12538
12544
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -12624,9 +12630,9 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
12624
12630
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
12625
12631
|
);
|
|
12626
12632
|
}
|
|
12627
|
-
return /* @__PURE__ */
|
|
12633
|
+
return /* @__PURE__ */ jsxs44(Fragment8, { children: [
|
|
12628
12634
|
/* @__PURE__ */ jsx268(TagDivider, { $colorScheme: colorScheme }),
|
|
12629
|
-
/* @__PURE__ */
|
|
12635
|
+
/* @__PURE__ */ jsxs44(
|
|
12630
12636
|
StyledRemoveButton,
|
|
12631
12637
|
{
|
|
12632
12638
|
$colorScheme: colorScheme,
|
|
@@ -12650,14 +12656,14 @@ var Tag = forwardRef29(
|
|
|
12650
12656
|
({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
|
|
12651
12657
|
const hasIcon = isNotNil31(icon);
|
|
12652
12658
|
const labelProps = isNotNil31(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
|
|
12653
|
-
return /* @__PURE__ */
|
|
12659
|
+
return /* @__PURE__ */ jsxs44(
|
|
12654
12660
|
StyledTag,
|
|
12655
12661
|
{
|
|
12656
12662
|
ref,
|
|
12657
12663
|
$colorScheme: colorScheme,
|
|
12658
12664
|
...props,
|
|
12659
12665
|
children: [
|
|
12660
|
-
/* @__PURE__ */
|
|
12666
|
+
/* @__PURE__ */ jsxs44(
|
|
12661
12667
|
TagLabel,
|
|
12662
12668
|
{
|
|
12663
12669
|
...labelProps,
|
|
@@ -12686,7 +12692,7 @@ Tag.displayName = "Tag";
|
|
|
12686
12692
|
// src/components/Thumbnail/ThumbnailBadge.tsx
|
|
12687
12693
|
import styled73 from "styled-components";
|
|
12688
12694
|
import { isNotNil as isNotNil32 } from "@wistia/type-guards";
|
|
12689
|
-
import { jsx as jsx269, jsxs as
|
|
12695
|
+
import { jsx as jsx269, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
12690
12696
|
var StyledThumbnailBadge = styled73.div`
|
|
12691
12697
|
align-items: center;
|
|
12692
12698
|
background-color: rgb(0 0 0 / 50%);
|
|
@@ -12712,7 +12718,7 @@ var StyledThumbnailBadge = styled73.div`
|
|
|
12712
12718
|
}
|
|
12713
12719
|
`;
|
|
12714
12720
|
var ThumbnailBadge = ({ icon, label, ...props }) => {
|
|
12715
|
-
return /* @__PURE__ */
|
|
12721
|
+
return /* @__PURE__ */ jsxs45(StyledThumbnailBadge, { ...props, children: [
|
|
12716
12722
|
isNotNil32(icon) && icon,
|
|
12717
12723
|
/* @__PURE__ */ jsx269("span", { children: label })
|
|
12718
12724
|
] });
|
|
@@ -12857,7 +12863,7 @@ var getBackgroundGradient = (gradientName = void 0) => {
|
|
|
12857
12863
|
};
|
|
12858
12864
|
|
|
12859
12865
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
12860
|
-
import { jsx as jsx270, jsxs as
|
|
12866
|
+
import { jsx as jsx270, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
12861
12867
|
var WideThumbnailImage = styled74.img`
|
|
12862
12868
|
height: 100%;
|
|
12863
12869
|
object-fit: cover;
|
|
@@ -12917,7 +12923,7 @@ var Thumbnail = forwardRef30(
|
|
|
12917
12923
|
...props
|
|
12918
12924
|
}, ref) => {
|
|
12919
12925
|
const backgroundUrl = thumbnailImageType === "square" && isNotNil34(thumbnailUrl) ? thumbnailUrl : void 0;
|
|
12920
|
-
return /* @__PURE__ */
|
|
12926
|
+
return /* @__PURE__ */ jsxs46(
|
|
12921
12927
|
StyledThumbnail,
|
|
12922
12928
|
{
|
|
12923
12929
|
ref,
|
|
@@ -13052,7 +13058,7 @@ var ThumbnailCollage = ({
|
|
|
13052
13058
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
13053
13059
|
import styled76, { css as css40 } from "styled-components";
|
|
13054
13060
|
import { isNotNil as isNotNil35 } from "@wistia/type-guards";
|
|
13055
|
-
import { jsx as jsx272, jsxs as
|
|
13061
|
+
import { jsx as jsx272, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
13056
13062
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
13057
13063
|
if (iconOnly) {
|
|
13058
13064
|
return /* @__PURE__ */ jsx272(
|
|
@@ -13150,7 +13156,7 @@ var WistiaLogo = ({
|
|
|
13150
13156
|
};
|
|
13151
13157
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
13152
13158
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
13153
|
-
const Logo = /* @__PURE__ */
|
|
13159
|
+
const Logo = /* @__PURE__ */ jsxs47(
|
|
13154
13160
|
WistiaLogoComponent,
|
|
13155
13161
|
{
|
|
13156
13162
|
$hoverColor: hoverColor,
|