@wistia/ui 0.6.36 → 0.6.37
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 +131 -131
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +76 -77
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { ReactNode, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent,
|
|
3
|
+
import react__default, { ReactNode, LegacyRef, MutableRefObject, RefCallback, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from 'react';
|
|
4
4
|
export * from 'use-file-picker/types';
|
|
5
5
|
export { useFilePicker, useImperativeFilePicker } from 'use-file-picker';
|
|
6
6
|
export { FileAmountLimitValidator, FileSizeValidator, FileTypeValidator, ImageDimensionsValidator, PersistentFileAmountLimitValidator } from 'use-file-picker/validators';
|
|
@@ -56,6 +56,8 @@ declare const dateTime: {
|
|
|
56
56
|
timeOnlyString: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
+
declare const mergeRefs: <T = unknown>(refs: (LegacyRef<T> | MutableRefObject<T> | null | undefined)[]) => RefCallback<T>;
|
|
60
|
+
|
|
59
61
|
declare const mq: {
|
|
60
62
|
xsAndUp: () => string;
|
|
61
63
|
smAndUp: () => string;
|
|
@@ -3026,4 +3028,4 @@ declare const WistiaLogo: {
|
|
|
3026
3028
|
displayName: string;
|
|
3027
3029
|
};
|
|
3028
3030
|
|
|
3029
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useToast, useWindowSize };
|
|
3031
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { ReactNode, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent,
|
|
3
|
+
import react__default, { ReactNode, LegacyRef, MutableRefObject, RefCallback, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from 'react';
|
|
4
4
|
export * from 'use-file-picker/types';
|
|
5
5
|
export { useFilePicker, useImperativeFilePicker } from 'use-file-picker';
|
|
6
6
|
export { FileAmountLimitValidator, FileSizeValidator, FileTypeValidator, ImageDimensionsValidator, PersistentFileAmountLimitValidator } from 'use-file-picker/validators';
|
|
@@ -56,6 +56,8 @@ declare const dateTime: {
|
|
|
56
56
|
timeOnlyString: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
+
declare const mergeRefs: <T = unknown>(refs: (LegacyRef<T> | MutableRefObject<T> | null | undefined)[]) => RefCallback<T>;
|
|
60
|
+
|
|
59
61
|
declare const mq: {
|
|
60
62
|
xsAndUp: () => string;
|
|
61
63
|
smAndUp: () => string;
|
|
@@ -3026,4 +3028,4 @@ declare const WistiaLogo: {
|
|
|
3026
3028
|
displayName: string;
|
|
3027
3029
|
};
|
|
3028
3030
|
|
|
3029
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useToast, useWindowSize };
|
|
3031
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useToast, useWindowSize };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.37
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1879,6 +1879,20 @@ var dateTime = {
|
|
|
1879
1879
|
timeOnlyString
|
|
1880
1880
|
};
|
|
1881
1881
|
|
|
1882
|
+
// src/helpers/mergeRefs/mergeRefs.ts
|
|
1883
|
+
import { isNotNil, isFunction } from "@wistia/type-guards";
|
|
1884
|
+
var mergeRefs = (refs) => (value) => {
|
|
1885
|
+
refs.forEach((ref) => {
|
|
1886
|
+
if (isFunction(ref)) {
|
|
1887
|
+
ref(value);
|
|
1888
|
+
return;
|
|
1889
|
+
}
|
|
1890
|
+
if (isNotNil(ref)) {
|
|
1891
|
+
ref.current = value;
|
|
1892
|
+
}
|
|
1893
|
+
});
|
|
1894
|
+
};
|
|
1895
|
+
|
|
1882
1896
|
// src/helpers/mq/mq.ts
|
|
1883
1897
|
import { getValueAndUnit } from "polished";
|
|
1884
1898
|
|
|
@@ -1963,9 +1977,9 @@ import { useCallback as useCallback3 } from "react";
|
|
|
1963
1977
|
import { useEffect as useEffect2, useRef as useRef2 } from "react";
|
|
1964
1978
|
|
|
1965
1979
|
// src/private/helpers/isValidRef/isValidRef.ts
|
|
1966
|
-
import { isNotNil, isRecord } from "@wistia/type-guards";
|
|
1980
|
+
import { isNotNil as isNotNil2, isRecord } from "@wistia/type-guards";
|
|
1967
1981
|
var isValidRef = (value) => {
|
|
1968
|
-
return
|
|
1982
|
+
return isNotNil2(value) && isRecord(value) && "current" in value;
|
|
1969
1983
|
};
|
|
1970
1984
|
|
|
1971
1985
|
// src/private/hooks/useEvent/useEvent.ts
|
|
@@ -2146,10 +2160,10 @@ import { toast as sonnerToast } from "sonner";
|
|
|
2146
2160
|
// src/private/components/Toast/Toast.tsx
|
|
2147
2161
|
import { cloneElement, isValidElement } from "react";
|
|
2148
2162
|
import styled2 from "styled-components";
|
|
2149
|
-
import { isNotNil as
|
|
2163
|
+
import { isNotNil as isNotNil4 } from "@wistia/type-guards";
|
|
2150
2164
|
|
|
2151
2165
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
2152
|
-
import { isNotNil as
|
|
2166
|
+
import { isNotNil as isNotNil3 } from "@wistia/type-guards";
|
|
2153
2167
|
import styled, { css as css12 } from "styled-components";
|
|
2154
2168
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
2155
2169
|
var ellipsisStyle = css12`
|
|
@@ -2182,7 +2196,7 @@ var ellipsisFlexParentStyle = css12`
|
|
|
2182
2196
|
var EllipsisComponent = styled.span`
|
|
2183
2197
|
${ellipsisStyle};
|
|
2184
2198
|
${({ $lines }) => {
|
|
2185
|
-
if (
|
|
2199
|
+
if (isNotNil3($lines)) {
|
|
2186
2200
|
return css12`
|
|
2187
2201
|
-webkit-box-orient: vertical;
|
|
2188
2202
|
-webkit-line-clamp: ${$lines};
|
|
@@ -2374,7 +2388,7 @@ var StyledToast = styled2.div`
|
|
|
2374
2388
|
}
|
|
2375
2389
|
`;
|
|
2376
2390
|
var Action = ({ actionButton }) => {
|
|
2377
|
-
if (
|
|
2391
|
+
if (isNotNil4(actionButton) && isValidElement(actionButton)) {
|
|
2378
2392
|
return /* @__PURE__ */ jsx5(ActionWrapper, { children: cloneElement(actionButton, {
|
|
2379
2393
|
variant: "soft",
|
|
2380
2394
|
// force Button variant
|
|
@@ -2398,7 +2412,7 @@ var Toast = ({
|
|
|
2398
2412
|
$colorScheme: colorScheme,
|
|
2399
2413
|
children: [
|
|
2400
2414
|
/* @__PURE__ */ jsxs2(MessageWrapper, { children: [
|
|
2401
|
-
|
|
2415
|
+
isNotNil4(icon) ? icon : null,
|
|
2402
2416
|
/* @__PURE__ */ jsx5(Message, { lines: 3, children: message })
|
|
2403
2417
|
] }),
|
|
2404
2418
|
/* @__PURE__ */ jsx5(Action, { actionButton: action })
|
|
@@ -2439,7 +2453,7 @@ import styled6, { css as css16 } from "styled-components";
|
|
|
2439
2453
|
// src/components/Button/Button.tsx
|
|
2440
2454
|
import { forwardRef as forwardRef2 } from "react";
|
|
2441
2455
|
import styled5 from "styled-components";
|
|
2442
|
-
import { isNotNil as
|
|
2456
|
+
import { isNotNil as isNotNil6, isNotUndefined as isNotUndefined3 } from "@wistia/type-guards";
|
|
2443
2457
|
|
|
2444
2458
|
// src/css/buttonResetCss.tsx
|
|
2445
2459
|
import { css as css14 } from "styled-components";
|
|
@@ -6573,7 +6587,7 @@ Icon.displayName = "Icon";
|
|
|
6573
6587
|
|
|
6574
6588
|
// src/components/Link/Link.tsx
|
|
6575
6589
|
import { forwardRef } from "react";
|
|
6576
|
-
import { isFunction, isNil as isNil6, isNotNil as
|
|
6590
|
+
import { isFunction as isFunction2, isNil as isNil6, isNotNil as isNotNil5, isNotUndefined as isNotUndefined2, isUndefined as isUndefined2 } from "@wistia/type-guards";
|
|
6577
6591
|
import styled4 from "styled-components";
|
|
6578
6592
|
import { Link as RouterLink, useInRouterContext } from "react-router-dom";
|
|
6579
6593
|
import { jsx as jsx192, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
@@ -6636,16 +6650,16 @@ var Link = forwardRef(
|
|
|
6636
6650
|
} catch (error) {
|
|
6637
6651
|
console.error(error);
|
|
6638
6652
|
} finally {
|
|
6639
|
-
if (
|
|
6653
|
+
if (isFunction2(props.onClick)) {
|
|
6640
6654
|
props.onClick(event);
|
|
6641
6655
|
} else if (routingCallback !== null) {
|
|
6642
6656
|
routingCallback();
|
|
6643
|
-
} else if (
|
|
6657
|
+
} else if (isNotNil5(to)) {
|
|
6644
6658
|
window.location.assign(to);
|
|
6645
6659
|
} else {
|
|
6646
6660
|
}
|
|
6647
6661
|
}
|
|
6648
|
-
} else if (
|
|
6662
|
+
} else if (isFunction2(props.onClick)) {
|
|
6649
6663
|
props.onClick(event);
|
|
6650
6664
|
} else {
|
|
6651
6665
|
}
|
|
@@ -6746,8 +6760,8 @@ var ButtonContent = ({
|
|
|
6746
6760
|
/* @__PURE__ */ jsxs8(
|
|
6747
6761
|
StyledButtonContent,
|
|
6748
6762
|
{
|
|
6749
|
-
$hasLeftIcon:
|
|
6750
|
-
$hasRightIcon:
|
|
6763
|
+
$hasLeftIcon: isNotNil6(leftIcon),
|
|
6764
|
+
$hasRightIcon: isNotNil6(rightIcon),
|
|
6751
6765
|
$isLoading: isLoading,
|
|
6752
6766
|
children: [
|
|
6753
6767
|
leftIcon ?? null,
|
|
@@ -6815,7 +6829,7 @@ var Button = forwardRef2(
|
|
|
6815
6829
|
event.preventDefault();
|
|
6816
6830
|
return;
|
|
6817
6831
|
}
|
|
6818
|
-
if (
|
|
6832
|
+
if (isNotNil6(onClick)) {
|
|
6819
6833
|
onClick(event);
|
|
6820
6834
|
}
|
|
6821
6835
|
};
|
|
@@ -7158,7 +7172,7 @@ Avatar.displayName = "Avatar";
|
|
|
7158
7172
|
// src/components/Badge/Badge.tsx
|
|
7159
7173
|
import { forwardRef as forwardRef4 } from "react";
|
|
7160
7174
|
import styled9 from "styled-components";
|
|
7161
|
-
import { isNotNil as
|
|
7175
|
+
import { isNotNil as isNotNil7 } from "@wistia/type-guards";
|
|
7162
7176
|
import { jsx as jsx197, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
7163
7177
|
var StyledBadge = styled9.div`
|
|
7164
7178
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -7182,7 +7196,7 @@ var StyledBadge = styled9.div`
|
|
|
7182
7196
|
`;
|
|
7183
7197
|
var Badge = forwardRef4(
|
|
7184
7198
|
({ colorScheme = "inherit", label, icon, ...otherProps }, ref) => {
|
|
7185
|
-
const hasIcon =
|
|
7199
|
+
const hasIcon = isNotNil7(icon);
|
|
7186
7200
|
return /* @__PURE__ */ jsxs10(
|
|
7187
7201
|
StyledBadge,
|
|
7188
7202
|
{
|
|
@@ -7203,7 +7217,7 @@ Badge.displayName = "Badge";
|
|
|
7203
7217
|
// src/components/Box/Box.tsx
|
|
7204
7218
|
import { Children, cloneElement as cloneElement2, forwardRef as forwardRef5 } from "react";
|
|
7205
7219
|
import styled10, { css as css17 } from "styled-components";
|
|
7206
|
-
import { isNotNil as
|
|
7220
|
+
import { isNotNil as isNotNil8, isNil as isNil9, isRecord as isRecord3, isNotUndefined as isNotUndefined4 } from "@wistia/type-guards";
|
|
7207
7221
|
|
|
7208
7222
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
7209
7223
|
var makePolymorphic = (component) => {
|
|
@@ -7214,7 +7228,7 @@ var makePolymorphic = (component) => {
|
|
|
7214
7228
|
import { jsx as jsx198 } from "react/jsx-runtime";
|
|
7215
7229
|
var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
|
|
7216
7230
|
var getGapStyle = (gap) => {
|
|
7217
|
-
if (
|
|
7231
|
+
if (isNotNil8(gap)) {
|
|
7218
7232
|
if (isRecord3(gap)) {
|
|
7219
7233
|
return Object.entries(gap).map(([key, value]) => {
|
|
7220
7234
|
return `${key}-gap: var(--wui-${value})};`;
|
|
@@ -7290,8 +7304,8 @@ var StyledBoxComponent = styled10.div`
|
|
|
7290
7304
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
7291
7305
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
7292
7306
|
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
7293
|
-
display: ${({ $inline }) =>
|
|
7294
|
-
flex-basis: ${({ $basis }) =>
|
|
7307
|
+
display: ${({ $inline }) => isNotNil8($inline) && $inline ? "inline-flex" : "flex"};
|
|
7308
|
+
flex-basis: ${({ $basis }) => isNotNil8($basis) ? $basis : null};
|
|
7295
7309
|
flex-direction: ${({ $flexDirection }) => $flexDirection};
|
|
7296
7310
|
${({ $fillBox: fill }) => getFillStyle(fill)};
|
|
7297
7311
|
${({ $fillViewport }) => getFillViewportStyle($fillViewport)};
|
|
@@ -7301,14 +7315,14 @@ var StyledBoxComponent = styled10.div`
|
|
|
7301
7315
|
width: ${({ $width }) => $width ?? null};
|
|
7302
7316
|
|
|
7303
7317
|
/* Box children styles */
|
|
7304
|
-
flex-grow: ${({ $grow }) =>
|
|
7305
|
-
flex-shrink: ${({ $shrink }) =>
|
|
7318
|
+
flex-grow: ${({ $grow }) => isNotNil8($grow) ? $grow : null};
|
|
7319
|
+
flex-shrink: ${({ $shrink }) => isNotNil8($shrink) ? $shrink : null};
|
|
7306
7320
|
flex-wrap: ${({ $wrapItems }) => $wrapItems ? "wrap" : "nowrap"};
|
|
7307
7321
|
justify-content: ${({ $justifyContent }) => $justifyContent};
|
|
7308
|
-
order: ${({ $order }) =>
|
|
7322
|
+
order: ${({ $order }) => isNotNil8($order) ? $order : null};
|
|
7309
7323
|
`;
|
|
7310
7324
|
var wrapChildren = (children) => {
|
|
7311
|
-
if (
|
|
7325
|
+
if (isNotNil8(children)) {
|
|
7312
7326
|
if (typeof children === "object" && isDev) {
|
|
7313
7327
|
return Children.map(children, (child) => {
|
|
7314
7328
|
if (isNil9(child)) return null;
|
|
@@ -7641,7 +7655,7 @@ import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
|
|
|
7641
7655
|
|
|
7642
7656
|
// src/private/components/FormControlLabel/FormControlLabel.tsx
|
|
7643
7657
|
import styled18, { css as css19 } from "styled-components";
|
|
7644
|
-
import { isNil as isNil12, isNotNil as
|
|
7658
|
+
import { isNil as isNil12, isNotNil as isNotNil10 } from "@wistia/type-guards";
|
|
7645
7659
|
|
|
7646
7660
|
// src/private/components/FormControlLabel/FormControlLabelDescription.tsx
|
|
7647
7661
|
import styled16, { css as css18 } from "styled-components";
|
|
@@ -7681,7 +7695,7 @@ FormControlLabelDescription.displayName = "FormControlLabelDescription";
|
|
|
7681
7695
|
|
|
7682
7696
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
7683
7697
|
import styled17 from "styled-components";
|
|
7684
|
-
import { isNotNil as
|
|
7698
|
+
import { isNotNil as isNotNil9 } from "@wistia/type-guards";
|
|
7685
7699
|
import { jsx as jsx205 } from "react/jsx-runtime";
|
|
7686
7700
|
var VisuallyHidden = styled17.div({ ...visuallyHiddenStyle });
|
|
7687
7701
|
var VisuallyHiddenButFocusable = styled17.div({
|
|
@@ -7693,7 +7707,7 @@ var ScreenReaderOnly = ({
|
|
|
7693
7707
|
focusable = false,
|
|
7694
7708
|
...otherProps
|
|
7695
7709
|
}) => {
|
|
7696
|
-
const accessibleText =
|
|
7710
|
+
const accessibleText = isNotNil9(text) ? text : children;
|
|
7697
7711
|
if (focusable) {
|
|
7698
7712
|
return /* @__PURE__ */ jsx205(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
|
|
7699
7713
|
}
|
|
@@ -7747,7 +7761,7 @@ var FormControlLabel = ({
|
|
|
7747
7761
|
htmlFor,
|
|
7748
7762
|
...props,
|
|
7749
7763
|
children: [
|
|
7750
|
-
|
|
7764
|
+
isNotNil10(controlSlot) ? controlSlot : null,
|
|
7751
7765
|
labelContent
|
|
7752
7766
|
]
|
|
7753
7767
|
}
|
|
@@ -7949,7 +7963,7 @@ ClickRegion.displayName = "ClickRegion";
|
|
|
7949
7963
|
|
|
7950
7964
|
// src/components/Collapsible/Collapsible.tsx
|
|
7951
7965
|
import { Root } from "@radix-ui/react-collapsible";
|
|
7952
|
-
import { isNotNil as
|
|
7966
|
+
import { isNotNil as isNotNil11 } from "@wistia/type-guards";
|
|
7953
7967
|
import styled20 from "styled-components";
|
|
7954
7968
|
import { jsx as jsx208 } from "react/jsx-runtime";
|
|
7955
7969
|
var StyledRoot = styled20(Root)`
|
|
@@ -7966,7 +7980,7 @@ var Collapsible = ({
|
|
|
7966
7980
|
onOpenChange
|
|
7967
7981
|
}) => {
|
|
7968
7982
|
const controlProps = {
|
|
7969
|
-
...
|
|
7983
|
+
...isNotNil11(onOpenChange) && isNotNil11(isOpen) ? { open: isOpen, onOpenChange } : {}
|
|
7970
7984
|
};
|
|
7971
7985
|
return /* @__PURE__ */ jsx208(StyledRoot, { ...controlProps, children });
|
|
7972
7986
|
};
|
|
@@ -8654,7 +8668,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
8654
8668
|
// src/components/Input/Input.tsx
|
|
8655
8669
|
import { forwardRef as forwardRef10, cloneElement as cloneElement4, useRef as useRef3 } from "react";
|
|
8656
8670
|
import styled29, { css as css25 } from "styled-components";
|
|
8657
|
-
import { isNil as isNil13, isNotNil as
|
|
8671
|
+
import { isNil as isNil13, isNotNil as isNotNil12, isRecord as isRecord4 } from "@wistia/type-guards";
|
|
8658
8672
|
import { jsx as jsx218, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
8659
8673
|
var inputStyles = css25`
|
|
8660
8674
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
@@ -8754,27 +8768,27 @@ var Input = forwardRef10(
|
|
|
8754
8768
|
const internalRef = useRef3();
|
|
8755
8769
|
const ref = (
|
|
8756
8770
|
// eslint-disable-next-line react-compiler/react-compiler
|
|
8757
|
-
|
|
8771
|
+
isNotNil12(externalRef) && isRecord4(externalRef) && "current" in externalRef ? externalRef : internalRef
|
|
8758
8772
|
);
|
|
8759
8773
|
let leftIconToDisplay = leftIcon;
|
|
8760
8774
|
if (isNil13(leftIcon) && type === "search") {
|
|
8761
8775
|
leftIconToDisplay = /* @__PURE__ */ jsx218(Icon, { type: "search" });
|
|
8762
8776
|
}
|
|
8763
|
-
if (
|
|
8777
|
+
if (isNotNil12(leftIconToDisplay)) {
|
|
8764
8778
|
leftIconToDisplay = cloneElement4(leftIconToDisplay, {
|
|
8765
8779
|
size: "md",
|
|
8766
8780
|
className: "wui-input-left-icon"
|
|
8767
8781
|
});
|
|
8768
8782
|
}
|
|
8769
8783
|
let rightIconToDisplay = rightIcon;
|
|
8770
|
-
if (
|
|
8784
|
+
if (isNotNil12(rightIconToDisplay)) {
|
|
8771
8785
|
rightIconToDisplay = cloneElement4(rightIconToDisplay, {
|
|
8772
8786
|
size: "md",
|
|
8773
8787
|
className: "wui-input-right-icon"
|
|
8774
8788
|
});
|
|
8775
8789
|
}
|
|
8776
8790
|
const handleFocus = (event) => {
|
|
8777
|
-
if (
|
|
8791
|
+
if (isNotNil12(props.onFocus)) {
|
|
8778
8792
|
props.onFocus(event);
|
|
8779
8793
|
}
|
|
8780
8794
|
if (autoSelect && isValidRef(ref) && "current" in ref) {
|
|
@@ -9167,7 +9181,7 @@ var FormErrorSummary = ({ description }) => {
|
|
|
9167
9181
|
// src/components/FormField/FormField.tsx
|
|
9168
9182
|
import { Children as Children5, cloneElement as cloneElement5, useContext as useContext3 } from "react";
|
|
9169
9183
|
import styled35 from "styled-components";
|
|
9170
|
-
import { isArray as isArray2, isNotNil as
|
|
9184
|
+
import { isArray as isArray2, isNotNil as isNotNil13, isNotUndefined as isNotUndefined8, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
9171
9185
|
|
|
9172
9186
|
// src/components/Label/Label.tsx
|
|
9173
9187
|
import styled33, { css as css27 } from "styled-components";
|
|
@@ -9383,8 +9397,8 @@ var FormField = ({
|
|
|
9383
9397
|
defaultValue
|
|
9384
9398
|
};
|
|
9385
9399
|
}
|
|
9386
|
-
if (
|
|
9387
|
-
const computedName =
|
|
9400
|
+
if (isNotNil13(checkboxGroup)) {
|
|
9401
|
+
const computedName = isNotNil13(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
|
|
9388
9402
|
const handleChange = (event) => {
|
|
9389
9403
|
if (isNotUndefined8(props.onChange)) {
|
|
9390
9404
|
props.onChange(event);
|
|
@@ -9397,7 +9411,7 @@ var FormField = ({
|
|
|
9397
9411
|
...childProps,
|
|
9398
9412
|
name: computedName,
|
|
9399
9413
|
onChange: handleChange,
|
|
9400
|
-
"aria-invalid":
|
|
9414
|
+
"aria-invalid": isNotNil13(error)
|
|
9401
9415
|
};
|
|
9402
9416
|
}
|
|
9403
9417
|
Children5.only(children);
|
|
@@ -9408,9 +9422,9 @@ var FormField = ({
|
|
|
9408
9422
|
"data-label-position": labelPosition ?? formState.labelPosition,
|
|
9409
9423
|
children: [
|
|
9410
9424
|
!isIntegratedLabel && /* @__PURE__ */ jsx226(Label, { htmlFor: computedId, children: label }),
|
|
9411
|
-
|
|
9425
|
+
isNotNil13(description) ? /* @__PURE__ */ jsx226(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
|
|
9412
9426
|
cloneElement5(children, childProps),
|
|
9413
|
-
|
|
9427
|
+
isNotNil13(computedError) ? /* @__PURE__ */ jsxs23(Fragment6, { children: [
|
|
9414
9428
|
/* @__PURE__ */ jsx226("div", {}),
|
|
9415
9429
|
/* @__PURE__ */ jsx226(
|
|
9416
9430
|
ErrorMessages,
|
|
@@ -9487,7 +9501,7 @@ IconButton.displayName = "IconButton";
|
|
|
9487
9501
|
|
|
9488
9502
|
// src/components/Image/Image.tsx
|
|
9489
9503
|
import styled37 from "styled-components";
|
|
9490
|
-
import { isNotNil as
|
|
9504
|
+
import { isNotNil as isNotNil14 } from "@wistia/type-guards";
|
|
9491
9505
|
import { jsx as jsx229 } from "react/jsx-runtime";
|
|
9492
9506
|
var getFillStyle2 = (fillContainer) => {
|
|
9493
9507
|
if (fillContainer === "horizontal") {
|
|
@@ -9505,7 +9519,7 @@ var getFillStyle2 = (fillContainer) => {
|
|
|
9505
9519
|
return void 0;
|
|
9506
9520
|
};
|
|
9507
9521
|
var StyledImage = styled37.img`
|
|
9508
|
-
border-radius: ${({ $borderRadius }) =>
|
|
9522
|
+
border-radius: ${({ $borderRadius }) => isNotNil14($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
|
|
9509
9523
|
${({ $fillContainer }) => getFillStyle2($fillContainer)};
|
|
9510
9524
|
object-fit: ${({ $objFit }) => $objFit};
|
|
9511
9525
|
object-position: ${({ $objPosition }) => $objPosition};
|
|
@@ -9542,7 +9556,7 @@ import {
|
|
|
9542
9556
|
DropdownMenuPortal,
|
|
9543
9557
|
DropdownMenuContent
|
|
9544
9558
|
} from "@radix-ui/react-dropdown-menu";
|
|
9545
|
-
import { isNotNil as
|
|
9559
|
+
import { isNotNil as isNotNil15, isNotUndefined as isNotUndefined9 } from "@wistia/type-guards";
|
|
9546
9560
|
import { useMemo as useMemo7 } from "react";
|
|
9547
9561
|
|
|
9548
9562
|
// src/components/Menu/MenuContext.tsx
|
|
@@ -9654,7 +9668,7 @@ var Menu = ({
|
|
|
9654
9668
|
}) => {
|
|
9655
9669
|
const contextValue = useMemo7(() => ({ compact }), [compact]);
|
|
9656
9670
|
let controlProps = {
|
|
9657
|
-
...
|
|
9671
|
+
...isNotNil15(onOpenChange) && isNotNil15(isOpen) ? { open: isOpen, onOpenChange } : {}
|
|
9658
9672
|
};
|
|
9659
9673
|
if (disabled) {
|
|
9660
9674
|
controlProps = {
|
|
@@ -9736,12 +9750,12 @@ import {
|
|
|
9736
9750
|
DropdownMenuSubTrigger,
|
|
9737
9751
|
DropdownMenuItem
|
|
9738
9752
|
} from "@radix-ui/react-dropdown-menu";
|
|
9739
|
-
import { isNotNil as
|
|
9753
|
+
import { isNotNil as isNotNil17 } from "@wistia/type-guards";
|
|
9740
9754
|
|
|
9741
9755
|
// src/components/Menu/MenuItemButton.tsx
|
|
9742
9756
|
import { forwardRef as forwardRef14 } from "react";
|
|
9743
9757
|
import styled40 from "styled-components";
|
|
9744
|
-
import { isNotNil as
|
|
9758
|
+
import { isNotNil as isNotNil16, isNotUndefined as isNotUndefined10 } from "@wistia/type-guards";
|
|
9745
9759
|
import { jsx as jsx232, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
9746
9760
|
var StyledButton3 = styled40(Button)`
|
|
9747
9761
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
@@ -9849,7 +9863,7 @@ var MenuItemButton = forwardRef14(({ children, appearance, command, icon, ...pro
|
|
|
9849
9863
|
children: [
|
|
9850
9864
|
props.leftIcon ? /* @__PURE__ */ jsx232(StyledLeftIconContainer, { children: props.leftIcon }) : null,
|
|
9851
9865
|
/* @__PURE__ */ jsx232(StyledLabelAndDescriptionContainer, { children }),
|
|
9852
|
-
|
|
9866
|
+
isNotNil16(badge) || isNotNil16(command) ? /* @__PURE__ */ jsx232(StyledBadgeContainer, { children: badge ?? command }) : null,
|
|
9853
9867
|
props.rightIcon ? /* @__PURE__ */ jsx232(StyledRightIconContainer, { children: props.rightIcon }) : null
|
|
9854
9868
|
]
|
|
9855
9869
|
}
|
|
@@ -9917,7 +9931,7 @@ var SubMenu = ({
|
|
|
9917
9931
|
return isSmAndUp ? /* @__PURE__ */ jsxs26(DropdownMenuSub, { onOpenChange, children: [
|
|
9918
9932
|
/* @__PURE__ */ jsxs26(SubMenuTrigger, { ...props, children: [
|
|
9919
9933
|
/* @__PURE__ */ jsx234(MenuItemLabel, { children: label }),
|
|
9920
|
-
|
|
9934
|
+
isNotNil17(description) ? /* @__PURE__ */ jsx234(MenuItemDescription, { children: description }) : null
|
|
9921
9935
|
] }),
|
|
9922
9936
|
/* @__PURE__ */ jsx234(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx234(SubMenuContent, { $compact: compact, children }) })
|
|
9923
9937
|
] }) : /* @__PURE__ */ jsxs26(DropdownMenuGroup, { children: [
|
|
@@ -10104,7 +10118,7 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
10104
10118
|
import { forwardRef as forwardRef18 } from "react";
|
|
10105
10119
|
import styled47 from "styled-components";
|
|
10106
10120
|
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
10107
|
-
import { isNotNil as
|
|
10121
|
+
import { isNotNil as isNotNil19 } from "@wistia/type-guards";
|
|
10108
10122
|
|
|
10109
10123
|
// src/components/Modal/ModalHeader.tsx
|
|
10110
10124
|
import styled44 from "styled-components";
|
|
@@ -10167,7 +10181,7 @@ import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
|
10167
10181
|
|
|
10168
10182
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
10169
10183
|
import { useRef as useRef8, useEffect as useEffect5 } from "react";
|
|
10170
|
-
import { isNotNil as
|
|
10184
|
+
import { isNotNil as isNotNil18 } from "@wistia/type-guards";
|
|
10171
10185
|
var useFocusRestore = () => {
|
|
10172
10186
|
const previouslyFocusedRef = useRef8(null);
|
|
10173
10187
|
useEffect5(() => {
|
|
@@ -10175,7 +10189,7 @@ var useFocusRestore = () => {
|
|
|
10175
10189
|
}, []);
|
|
10176
10190
|
useEffect5(() => {
|
|
10177
10191
|
return () => {
|
|
10178
|
-
if (
|
|
10192
|
+
if (isNotNil18(previouslyFocusedRef.current)) {
|
|
10179
10193
|
setTimeout(() => {
|
|
10180
10194
|
previouslyFocusedRef.current?.focus();
|
|
10181
10195
|
}, 0);
|
|
@@ -10322,7 +10336,7 @@ var Modal = forwardRef18(
|
|
|
10322
10336
|
DialogRoot,
|
|
10323
10337
|
{
|
|
10324
10338
|
onOpenChange: (open2) => {
|
|
10325
|
-
if (!open2 &&
|
|
10339
|
+
if (!open2 && isNotNil19(onRequestClose)) {
|
|
10326
10340
|
onRequestClose();
|
|
10327
10341
|
}
|
|
10328
10342
|
},
|
|
@@ -10335,7 +10349,7 @@ var Modal = forwardRef18(
|
|
|
10335
10349
|
ref,
|
|
10336
10350
|
fullHeight,
|
|
10337
10351
|
onOpenAutoFocus: (event) => {
|
|
10338
|
-
if (
|
|
10352
|
+
if (isNotNil19(initialFocusRef) && initialFocusRef.current) {
|
|
10339
10353
|
event.preventDefault();
|
|
10340
10354
|
requestAnimationFrame(() => {
|
|
10341
10355
|
initialFocusRef.current?.focus();
|
|
@@ -10369,9 +10383,9 @@ import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close
|
|
|
10369
10383
|
import styled48, { css as css29 } from "styled-components";
|
|
10370
10384
|
|
|
10371
10385
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
10372
|
-
import { isNotNil as
|
|
10386
|
+
import { isNotNil as isNotNil20 } from "@wistia/type-guards";
|
|
10373
10387
|
var getControlProps = (isOpen, onOpenChange) => {
|
|
10374
|
-
return
|
|
10388
|
+
return isNotNil20(onOpenChange) && isNotNil20(isOpen) ? { open: isOpen, onOpenChange } : {};
|
|
10375
10389
|
};
|
|
10376
10390
|
|
|
10377
10391
|
// src/components/Popover/Popover.tsx
|
|
@@ -10430,7 +10444,7 @@ Popover.displayName = "Popover";
|
|
|
10430
10444
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
10431
10445
|
import styled49 from "styled-components";
|
|
10432
10446
|
import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
|
|
10433
|
-
import { isNotNil as
|
|
10447
|
+
import { isNotNil as isNotNil21 } from "@wistia/type-guards";
|
|
10434
10448
|
import { jsx as jsx245, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
10435
10449
|
var ProgressBarWrapper = styled49.div`
|
|
10436
10450
|
--progress-bar-height: 8px;
|
|
@@ -10485,7 +10499,7 @@ var ProgressBar = ({
|
|
|
10485
10499
|
...props
|
|
10486
10500
|
}) => {
|
|
10487
10501
|
return /* @__PURE__ */ jsxs32(ProgressBarWrapper, { children: [
|
|
10488
|
-
|
|
10502
|
+
isNotNil21(labelLeft) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelLeft }) : null,
|
|
10489
10503
|
/* @__PURE__ */ jsx245(
|
|
10490
10504
|
StyledProgressBar,
|
|
10491
10505
|
{
|
|
@@ -10501,7 +10515,7 @@ var ProgressBar = ({
|
|
|
10501
10515
|
)
|
|
10502
10516
|
}
|
|
10503
10517
|
),
|
|
10504
|
-
|
|
10518
|
+
isNotNil21(labelRight) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelRight }) : null
|
|
10505
10519
|
] });
|
|
10506
10520
|
};
|
|
10507
10521
|
ProgressBar.displayName = "ProgressBar";
|
|
@@ -10819,22 +10833,6 @@ import { forwardRef as forwardRef21, useEffect as useEffect6, useRef as useRef9
|
|
|
10819
10833
|
import styled53, { css as css32 } from "styled-components";
|
|
10820
10834
|
import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
10821
10835
|
import { isNotNil as isNotNil22 } from "@wistia/type-guards";
|
|
10822
|
-
|
|
10823
|
-
// src/private/helpers/mergeRefs/mergeRefs.ts
|
|
10824
|
-
import { isNotNil as isNotNil21, isFunction as isFunction2 } from "@wistia/type-guards";
|
|
10825
|
-
var mergeRefs = (refs) => (value) => {
|
|
10826
|
-
refs.forEach((ref) => {
|
|
10827
|
-
if (isFunction2(ref)) {
|
|
10828
|
-
ref(value);
|
|
10829
|
-
return;
|
|
10830
|
-
}
|
|
10831
|
-
if (isNotNil21(ref)) {
|
|
10832
|
-
ref.current = value;
|
|
10833
|
-
}
|
|
10834
|
-
});
|
|
10835
|
-
};
|
|
10836
|
-
|
|
10837
|
-
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
10838
10836
|
import { jsxs as jsxs35 } from "react/jsx-runtime";
|
|
10839
10837
|
var segmentedControlItemStyles = css32`
|
|
10840
10838
|
all: unset; /* ToggleGroupItem is a button element */
|
|
@@ -12102,6 +12100,7 @@ export {
|
|
|
12102
12100
|
ellipsisFlexParentStyle,
|
|
12103
12101
|
ellipsisStyle,
|
|
12104
12102
|
iconSizeMap,
|
|
12103
|
+
mergeRefs,
|
|
12105
12104
|
mq,
|
|
12106
12105
|
useActiveMq,
|
|
12107
12106
|
useAriaLive,
|