@wistia/ui 0.18.9 → 0.18.10-beta.1c7d7d81.2b9bb3b
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 +37 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.mjs +13 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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
|
|
3
|
+
import { ReactNode, LegacyRef, MutableRefObject, RefCallback, Dispatch, SetStateAction, RefObject, FocusEvent, MouseEvent, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, AnchorHTMLAttributes, ReactElement, ElementType, ChangeEvent, PropsWithChildren, InputHTMLAttributes, Ref, SyntheticEvent, HTMLAttributes, ForwardRefExoticComponent, RefAttributes, TdHTMLAttributes, ThHTMLAttributes, ComponentProps } from 'react';
|
|
4
4
|
import { UseFilePickerConfig, FilePickerReturnTypes, ExtractContentTypeFromConfig, useImperativeFilePickerConfig, ImperativeFilePickerReturnTypes } from 'use-file-picker/types';
|
|
5
5
|
export * from 'use-file-picker/types';
|
|
6
6
|
import { CollapsibleContentProps as CollapsibleContentProps$1 } from '@radix-ui/react-collapsible';
|
|
@@ -123,11 +123,11 @@ declare const useFocusTrap: (active?: boolean, options?: UseFocusTrapOptions) =>
|
|
|
123
123
|
declare const useForceUpdate: () => (() => void);
|
|
124
124
|
|
|
125
125
|
type HoverProps = {
|
|
126
|
-
onFocus: (event:
|
|
127
|
-
onMouseEnter: (event:
|
|
128
|
-
onBlur: (event:
|
|
129
|
-
onMouseLeave: (event:
|
|
130
|
-
onMouseMove?: (event:
|
|
126
|
+
onFocus: (event: FocusEvent) => void;
|
|
127
|
+
onMouseEnter: (event: MouseEvent) => void;
|
|
128
|
+
onBlur: (event: FocusEvent) => void;
|
|
129
|
+
onMouseLeave: (event: MouseEvent) => void;
|
|
130
|
+
onMouseMove?: (event: MouseEvent) => void;
|
|
131
131
|
};
|
|
132
132
|
declare const useIsHovered: () => [boolean, HoverProps, (hovered: boolean) => void];
|
|
133
133
|
|
|
@@ -198,7 +198,7 @@ declare const ColorSchemeWrapper: {
|
|
|
198
198
|
type ButtonVariants = 'ghost' | 'outline' | 'soft' | 'solid';
|
|
199
199
|
|
|
200
200
|
type LinkTypes = 'default' | 'email' | 'external' | 'phone';
|
|
201
|
-
type ReactRouterLinkProps = Omit<
|
|
201
|
+
type ReactRouterLinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> & {
|
|
202
202
|
reloadDocument?: boolean;
|
|
203
203
|
replace?: boolean;
|
|
204
204
|
state?: any;
|
|
@@ -432,7 +432,7 @@ type ToastProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
432
432
|
/**
|
|
433
433
|
* Action can be undefined (default dismiss button), a Button component or false to hide the dismiss button
|
|
434
434
|
*/
|
|
435
|
-
action?:
|
|
435
|
+
action?: ReactElement<typeof Button> | undefined;
|
|
436
436
|
/**
|
|
437
437
|
* Sets the [color scheme](../?path=/docs/docs-color-schemes--docs)
|
|
438
438
|
*/
|
|
@@ -2195,7 +2195,7 @@ type EditableTextCancelButtonProps = {
|
|
|
2195
2195
|
*/
|
|
2196
2196
|
children: ReactElement;
|
|
2197
2197
|
};
|
|
2198
|
-
declare const EditableTextCancelButton: ({ children, }: EditableTextCancelButtonProps) =>
|
|
2198
|
+
declare const EditableTextCancelButton: ({ children, }: EditableTextCancelButtonProps) => JSX.Element | null;
|
|
2199
2199
|
|
|
2200
2200
|
type EditableTextTriggerProps = {
|
|
2201
2201
|
/**
|
|
@@ -3181,7 +3181,7 @@ type ModalCalloutsProps = {
|
|
|
3181
3181
|
/**
|
|
3182
3182
|
* The content to be displayed in the modal callout.
|
|
3183
3183
|
*/
|
|
3184
|
-
children?:
|
|
3184
|
+
children?: ReactNode;
|
|
3185
3185
|
};
|
|
3186
3186
|
declare const ModalCallouts: {
|
|
3187
3187
|
({ children }: ModalCalloutsProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3193,7 +3193,7 @@ type ModalCalloutProps = {
|
|
|
3193
3193
|
/**
|
|
3194
3194
|
* The content to be displayed in the modal callout.
|
|
3195
3195
|
*/
|
|
3196
|
-
children?:
|
|
3196
|
+
children?: ReactNode;
|
|
3197
3197
|
};
|
|
3198
3198
|
declare const ModalCallout: {
|
|
3199
3199
|
({ title, image, children }: ModalCalloutProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3926,23 +3926,23 @@ declare const Switch: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHT
|
|
|
3926
3926
|
hideLabel?: boolean;
|
|
3927
3927
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
3928
3928
|
|
|
3929
|
-
type TableBodyProps =
|
|
3929
|
+
type TableBodyProps = HTMLAttributes<HTMLTableSectionElement> & {
|
|
3930
3930
|
children?: ReactNode;
|
|
3931
3931
|
};
|
|
3932
3932
|
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX.Element;
|
|
3933
3933
|
|
|
3934
|
-
type CellAttrs = Omit<
|
|
3934
|
+
type CellAttrs = Omit<TdHTMLAttributes<HTMLTableCellElement>, 'ref'> & Omit<ThHTMLAttributes<HTMLTableCellElement>, 'ref'>;
|
|
3935
3935
|
type TableCellProps = CellAttrs & {
|
|
3936
3936
|
children?: ReactNode;
|
|
3937
3937
|
};
|
|
3938
3938
|
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX.Element;
|
|
3939
3939
|
|
|
3940
|
-
type TableFootProps =
|
|
3940
|
+
type TableFootProps = HTMLAttributes<HTMLTableSectionElement> & {
|
|
3941
3941
|
children?: ReactNode;
|
|
3942
3942
|
};
|
|
3943
3943
|
declare const TableFoot: ({ children, ...props }: TableFootProps) => JSX.Element;
|
|
3944
3944
|
|
|
3945
|
-
type TableHeadProps =
|
|
3945
|
+
type TableHeadProps = HTMLAttributes<HTMLTableSectionElement> & {
|
|
3946
3946
|
children?: ReactNode;
|
|
3947
3947
|
};
|
|
3948
3948
|
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX.Element;
|
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
|
|
3
|
+
import { ReactNode, LegacyRef, MutableRefObject, RefCallback, Dispatch, SetStateAction, RefObject, FocusEvent, MouseEvent, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, AnchorHTMLAttributes, ReactElement, ElementType, ChangeEvent, PropsWithChildren, InputHTMLAttributes, Ref, SyntheticEvent, HTMLAttributes, ForwardRefExoticComponent, RefAttributes, TdHTMLAttributes, ThHTMLAttributes, ComponentProps } from 'react';
|
|
4
4
|
import { UseFilePickerConfig, FilePickerReturnTypes, ExtractContentTypeFromConfig, useImperativeFilePickerConfig, ImperativeFilePickerReturnTypes } from 'use-file-picker/types';
|
|
5
5
|
export * from 'use-file-picker/types';
|
|
6
6
|
import { CollapsibleContentProps as CollapsibleContentProps$1 } from '@radix-ui/react-collapsible';
|
|
@@ -123,11 +123,11 @@ declare const useFocusTrap: (active?: boolean, options?: UseFocusTrapOptions) =>
|
|
|
123
123
|
declare const useForceUpdate: () => (() => void);
|
|
124
124
|
|
|
125
125
|
type HoverProps = {
|
|
126
|
-
onFocus: (event:
|
|
127
|
-
onMouseEnter: (event:
|
|
128
|
-
onBlur: (event:
|
|
129
|
-
onMouseLeave: (event:
|
|
130
|
-
onMouseMove?: (event:
|
|
126
|
+
onFocus: (event: FocusEvent) => void;
|
|
127
|
+
onMouseEnter: (event: MouseEvent) => void;
|
|
128
|
+
onBlur: (event: FocusEvent) => void;
|
|
129
|
+
onMouseLeave: (event: MouseEvent) => void;
|
|
130
|
+
onMouseMove?: (event: MouseEvent) => void;
|
|
131
131
|
};
|
|
132
132
|
declare const useIsHovered: () => [boolean, HoverProps, (hovered: boolean) => void];
|
|
133
133
|
|
|
@@ -198,7 +198,7 @@ declare const ColorSchemeWrapper: {
|
|
|
198
198
|
type ButtonVariants = 'ghost' | 'outline' | 'soft' | 'solid';
|
|
199
199
|
|
|
200
200
|
type LinkTypes = 'default' | 'email' | 'external' | 'phone';
|
|
201
|
-
type ReactRouterLinkProps = Omit<
|
|
201
|
+
type ReactRouterLinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> & {
|
|
202
202
|
reloadDocument?: boolean;
|
|
203
203
|
replace?: boolean;
|
|
204
204
|
state?: any;
|
|
@@ -432,7 +432,7 @@ type ToastProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
432
432
|
/**
|
|
433
433
|
* Action can be undefined (default dismiss button), a Button component or false to hide the dismiss button
|
|
434
434
|
*/
|
|
435
|
-
action?:
|
|
435
|
+
action?: ReactElement<typeof Button> | undefined;
|
|
436
436
|
/**
|
|
437
437
|
* Sets the [color scheme](../?path=/docs/docs-color-schemes--docs)
|
|
438
438
|
*/
|
|
@@ -2195,7 +2195,7 @@ type EditableTextCancelButtonProps = {
|
|
|
2195
2195
|
*/
|
|
2196
2196
|
children: ReactElement;
|
|
2197
2197
|
};
|
|
2198
|
-
declare const EditableTextCancelButton: ({ children, }: EditableTextCancelButtonProps) =>
|
|
2198
|
+
declare const EditableTextCancelButton: ({ children, }: EditableTextCancelButtonProps) => JSX.Element | null;
|
|
2199
2199
|
|
|
2200
2200
|
type EditableTextTriggerProps = {
|
|
2201
2201
|
/**
|
|
@@ -3181,7 +3181,7 @@ type ModalCalloutsProps = {
|
|
|
3181
3181
|
/**
|
|
3182
3182
|
* The content to be displayed in the modal callout.
|
|
3183
3183
|
*/
|
|
3184
|
-
children?:
|
|
3184
|
+
children?: ReactNode;
|
|
3185
3185
|
};
|
|
3186
3186
|
declare const ModalCallouts: {
|
|
3187
3187
|
({ children }: ModalCalloutsProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3193,7 +3193,7 @@ type ModalCalloutProps = {
|
|
|
3193
3193
|
/**
|
|
3194
3194
|
* The content to be displayed in the modal callout.
|
|
3195
3195
|
*/
|
|
3196
|
-
children?:
|
|
3196
|
+
children?: ReactNode;
|
|
3197
3197
|
};
|
|
3198
3198
|
declare const ModalCallout: {
|
|
3199
3199
|
({ title, image, children }: ModalCalloutProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3926,23 +3926,23 @@ declare const Switch: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHT
|
|
|
3926
3926
|
hideLabel?: boolean;
|
|
3927
3927
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
3928
3928
|
|
|
3929
|
-
type TableBodyProps =
|
|
3929
|
+
type TableBodyProps = HTMLAttributes<HTMLTableSectionElement> & {
|
|
3930
3930
|
children?: ReactNode;
|
|
3931
3931
|
};
|
|
3932
3932
|
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX.Element;
|
|
3933
3933
|
|
|
3934
|
-
type CellAttrs = Omit<
|
|
3934
|
+
type CellAttrs = Omit<TdHTMLAttributes<HTMLTableCellElement>, 'ref'> & Omit<ThHTMLAttributes<HTMLTableCellElement>, 'ref'>;
|
|
3935
3935
|
type TableCellProps = CellAttrs & {
|
|
3936
3936
|
children?: ReactNode;
|
|
3937
3937
|
};
|
|
3938
3938
|
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX.Element;
|
|
3939
3939
|
|
|
3940
|
-
type TableFootProps =
|
|
3940
|
+
type TableFootProps = HTMLAttributes<HTMLTableSectionElement> & {
|
|
3941
3941
|
children?: ReactNode;
|
|
3942
3942
|
};
|
|
3943
3943
|
declare const TableFoot: ({ children, ...props }: TableFootProps) => JSX.Element;
|
|
3944
3944
|
|
|
3945
|
-
type TableHeadProps =
|
|
3945
|
+
type TableHeadProps = HTMLAttributes<HTMLTableSectionElement> & {
|
|
3946
3946
|
children?: ReactNode;
|
|
3947
3947
|
};
|
|
3948
3948
|
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX.Element;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.
|
|
3
|
+
* @license @wistia/ui v0.18.10-beta.1c7d7d81.2b9bb3b
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -17549,7 +17549,6 @@ var Table = ({
|
|
|
17549
17549
|
};
|
|
17550
17550
|
|
|
17551
17551
|
// src/components/Table/TableBody.tsx
|
|
17552
|
-
import "react";
|
|
17553
17552
|
import { styled as styled97 } from "styled-components";
|
|
17554
17553
|
|
|
17555
17554
|
// src/components/Table/TableSectionContext.ts
|
|
@@ -17593,7 +17592,6 @@ var TableCell = ({ children, ...props }) => {
|
|
|
17593
17592
|
};
|
|
17594
17593
|
|
|
17595
17594
|
// src/components/Table/TableFoot.tsx
|
|
17596
|
-
import "react";
|
|
17597
17595
|
import { styled as styled99 } from "styled-components";
|
|
17598
17596
|
import { jsx as jsx321 } from "react/jsx-runtime";
|
|
17599
17597
|
var StyledTableFoot = styled99.tfoot``;
|
|
@@ -17602,7 +17600,6 @@ var TableFoot = ({ children, ...props }) => {
|
|
|
17602
17600
|
};
|
|
17603
17601
|
|
|
17604
17602
|
// src/components/Table/TableHead.tsx
|
|
17605
|
-
import "react";
|
|
17606
17603
|
import { styled as styled100 } from "styled-components";
|
|
17607
17604
|
import { jsx as jsx322 } from "react/jsx-runtime";
|
|
17608
17605
|
var StyledThead = styled100.thead``;
|
|
@@ -17803,7 +17800,7 @@ var StyledThumbnailBadge = styled105.div`
|
|
|
17803
17800
|
align-items: center;
|
|
17804
17801
|
background-color: rgb(0 0 0 / 50%);
|
|
17805
17802
|
border-radius: var(--wui-border-radius-01);
|
|
17806
|
-
bottom: var(--wui-thumbnail-badge-offset);
|
|
17803
|
+
bottom: var(--wui-thumbnail-badge-offset, var(--wui-space-01));
|
|
17807
17804
|
color: var(--wui-color-text-on-fill);
|
|
17808
17805
|
display: flex;
|
|
17809
17806
|
font-size: var(--wui-typography-body-4-size);
|
|
@@ -17811,7 +17808,7 @@ var StyledThumbnailBadge = styled105.div`
|
|
|
17811
17808
|
gap: var(--wui-space-01);
|
|
17812
17809
|
padding: 0 var(--wui-space-01);
|
|
17813
17810
|
position: absolute;
|
|
17814
|
-
right: var(--wui-thumbnail-badge-offset);
|
|
17811
|
+
right: var(--wui-thumbnail-badge-offset, var(--wui-space-01));
|
|
17815
17812
|
z-index: 1;
|
|
17816
17813
|
|
|
17817
17814
|
svg {
|
|
@@ -18173,7 +18170,11 @@ var StyledThumbnail = styled107.div`
|
|
|
18173
18170
|
width: 100%;
|
|
18174
18171
|
overflow: hidden;
|
|
18175
18172
|
position: relative;
|
|
18176
|
-
|
|
18173
|
+
|
|
18174
|
+
&,
|
|
18175
|
+
img {
|
|
18176
|
+
border-radius: clamp(var(--wui-border-radius-01), 8cqh, var(--wui-border-radius-05));
|
|
18177
|
+
}
|
|
18177
18178
|
|
|
18178
18179
|
@container (min-width: 200px) {
|
|
18179
18180
|
--wui-thumbnail-badge-offset: var(--wui-space-02);
|
|
@@ -18330,7 +18331,7 @@ var Thumbnail = forwardRef37(
|
|
|
18330
18331
|
Thumbnail.displayName = "Thumbnail_UI";
|
|
18331
18332
|
|
|
18332
18333
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
18333
|
-
import
|
|
18334
|
+
import { cloneElement as cloneElement9, Children as Children11 } from "react";
|
|
18334
18335
|
import { styled as styled108 } from "styled-components";
|
|
18335
18336
|
import { isNonEmptyArray } from "@wistia/type-guards";
|
|
18336
18337
|
import { jsx as jsx331 } from "react/jsx-runtime";
|
|
@@ -18389,10 +18390,10 @@ var ThumbnailCollage = ({
|
|
|
18389
18390
|
gradientBackground = "defaultMidOne",
|
|
18390
18391
|
...props
|
|
18391
18392
|
}) => {
|
|
18392
|
-
const thumbnailArray =
|
|
18393
|
+
const thumbnailArray = Children11.toArray(children);
|
|
18393
18394
|
const truncatedThumbnails = thumbnailArray.slice(0, 3);
|
|
18394
18395
|
const thumbnails = isNonEmptyArray(thumbnailArray) ? truncatedThumbnails.map((child) => {
|
|
18395
|
-
return
|
|
18396
|
+
return cloneElement9(child, {
|
|
18396
18397
|
...child.props,
|
|
18397
18398
|
children: void 0
|
|
18398
18399
|
});
|
|
@@ -18546,7 +18547,7 @@ WistiaLogo.displayName = "WistiaLogo_UI";
|
|
|
18546
18547
|
// src/components/SplitButton/SplitButton.tsx
|
|
18547
18548
|
import { styled as styled110 } from "styled-components";
|
|
18548
18549
|
import { isNotNil as isNotNil45 } from "@wistia/type-guards";
|
|
18549
|
-
import { cloneElement as
|
|
18550
|
+
import { cloneElement as cloneElement10 } from "react";
|
|
18550
18551
|
import { jsx as jsx333, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
18551
18552
|
var StyledSplitButton = styled110.span`
|
|
18552
18553
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -18611,7 +18612,7 @@ var SplitButton = ({
|
|
|
18611
18612
|
children: menuItems
|
|
18612
18613
|
}
|
|
18613
18614
|
),
|
|
18614
|
-
isNotNil45(secondaryAction) &&
|
|
18615
|
+
isNotNil45(secondaryAction) && cloneElement10(secondaryAction, { disabled, size, unstyled, variant, colorScheme })
|
|
18615
18616
|
] });
|
|
18616
18617
|
};
|
|
18617
18618
|
SplitButton.displayName = "SplitButton_UI";
|