@wistia/ui 0.6.13 → 0.6.14-beta.3f97cbfa.3a5d72d
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 +626 -483
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +57 -2
- package/dist/index.d.ts +57 -2
- package/dist/index.mjs +396 -255
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -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, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
import react__default, { ReactNode, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, MutableRefObject, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } 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';
|
|
@@ -830,6 +830,31 @@ type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
|
|
|
830
830
|
};
|
|
831
831
|
declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
832
832
|
|
|
833
|
+
type ClickRegionProps = {
|
|
834
|
+
/**
|
|
835
|
+
* The content that should be clickable.
|
|
836
|
+
*/
|
|
837
|
+
children: JSX.Element;
|
|
838
|
+
/**
|
|
839
|
+
* The ref to the button or link that should be clicked when the ClickRegion is clicked.
|
|
840
|
+
*/
|
|
841
|
+
targetRef: MutableRefObject<HTMLAnchorElement | HTMLButtonElement | null>;
|
|
842
|
+
};
|
|
843
|
+
/**
|
|
844
|
+
* This allows larger elements to be interactive links or buttons while maintaining acessibility.
|
|
845
|
+
*
|
|
846
|
+
* For buttons, when the element is clicked, it will proxy a click event to the targetRef, which should be inside the ClickRegion.
|
|
847
|
+
*
|
|
848
|
+
* For links, a pseudo-element of the link is created that is the size of the ClickRegion. **Note**: this will prevent text selection
|
|
849
|
+
* inside the text region.
|
|
850
|
+
*
|
|
851
|
+
* In either case, a link or button must be present, but can be hidden by using `ScreenReaderOnly`.
|
|
852
|
+
*/
|
|
853
|
+
declare const ClickRegion: {
|
|
854
|
+
({ children, targetRef }: ClickRegionProps): JSX.Element;
|
|
855
|
+
displayName: string;
|
|
856
|
+
};
|
|
857
|
+
|
|
833
858
|
type CollapsibleProps = {
|
|
834
859
|
/**
|
|
835
860
|
* `CollapsibleTrigger` and `CollapsibleContent` must be included somewhere inside these children.
|
|
@@ -1711,6 +1736,10 @@ type SubMenuProps = {
|
|
|
1711
1736
|
* Callback when the submenu is opened or closed
|
|
1712
1737
|
*/
|
|
1713
1738
|
onOpenChange?: (open: boolean) => void;
|
|
1739
|
+
/**
|
|
1740
|
+
* Icon to display on the left side of the SubMenu, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1741
|
+
*/
|
|
1742
|
+
icon?: JSX.Element | undefined;
|
|
1714
1743
|
};
|
|
1715
1744
|
declare const SubMenu: {
|
|
1716
1745
|
({ label, description, children, onOpenChange, ...props }: SubMenuProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2151,6 +2180,32 @@ declare const Popover: {
|
|
|
2151
2180
|
displayName: string;
|
|
2152
2181
|
};
|
|
2153
2182
|
|
|
2183
|
+
type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
2184
|
+
/**
|
|
2185
|
+
* Current numeric level of the progress (0 -> max)
|
|
2186
|
+
*/
|
|
2187
|
+
progress: number;
|
|
2188
|
+
/**
|
|
2189
|
+
* The maximum progress value
|
|
2190
|
+
*/
|
|
2191
|
+
max?: number;
|
|
2192
|
+
/**
|
|
2193
|
+
* Slot for additional content to be rendered to the left of the progress bar
|
|
2194
|
+
*/
|
|
2195
|
+
labelLeft?: ReactNode;
|
|
2196
|
+
/**
|
|
2197
|
+
* Slot for additional content to be rendered to the right of the progress bar
|
|
2198
|
+
*/
|
|
2199
|
+
labelRight?: ReactNode;
|
|
2200
|
+
};
|
|
2201
|
+
/**
|
|
2202
|
+
* A progress component that visually represents the completion status of a task
|
|
2203
|
+
*/
|
|
2204
|
+
declare const ProgressBar: {
|
|
2205
|
+
({ progress, max, children, labelLeft, labelRight, ...props }: ProgressBarProps): JSX.Element;
|
|
2206
|
+
displayName: string;
|
|
2207
|
+
};
|
|
2208
|
+
|
|
2154
2209
|
type RadioProps = ComponentPropsWithoutRef<'input'> & {
|
|
2155
2210
|
/**
|
|
2156
2211
|
* Indicates the state of the radio
|
|
@@ -2701,4 +2756,4 @@ declare const WistiaLogo: {
|
|
|
2701
2756
|
displayName: string;
|
|
2702
2757
|
};
|
|
2703
2758
|
|
|
2704
|
-
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, Checkbox, CheckboxGroup, CheckboxMenuItem, 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, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, 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, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|
|
2759
|
+
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, 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, 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, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, 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, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
import react__default, { ReactNode, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, MutableRefObject, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } 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';
|
|
@@ -830,6 +830,31 @@ type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
|
|
|
830
830
|
};
|
|
831
831
|
declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
832
832
|
|
|
833
|
+
type ClickRegionProps = {
|
|
834
|
+
/**
|
|
835
|
+
* The content that should be clickable.
|
|
836
|
+
*/
|
|
837
|
+
children: JSX.Element;
|
|
838
|
+
/**
|
|
839
|
+
* The ref to the button or link that should be clicked when the ClickRegion is clicked.
|
|
840
|
+
*/
|
|
841
|
+
targetRef: MutableRefObject<HTMLAnchorElement | HTMLButtonElement | null>;
|
|
842
|
+
};
|
|
843
|
+
/**
|
|
844
|
+
* This allows larger elements to be interactive links or buttons while maintaining acessibility.
|
|
845
|
+
*
|
|
846
|
+
* For buttons, when the element is clicked, it will proxy a click event to the targetRef, which should be inside the ClickRegion.
|
|
847
|
+
*
|
|
848
|
+
* For links, a pseudo-element of the link is created that is the size of the ClickRegion. **Note**: this will prevent text selection
|
|
849
|
+
* inside the text region.
|
|
850
|
+
*
|
|
851
|
+
* In either case, a link or button must be present, but can be hidden by using `ScreenReaderOnly`.
|
|
852
|
+
*/
|
|
853
|
+
declare const ClickRegion: {
|
|
854
|
+
({ children, targetRef }: ClickRegionProps): JSX.Element;
|
|
855
|
+
displayName: string;
|
|
856
|
+
};
|
|
857
|
+
|
|
833
858
|
type CollapsibleProps = {
|
|
834
859
|
/**
|
|
835
860
|
* `CollapsibleTrigger` and `CollapsibleContent` must be included somewhere inside these children.
|
|
@@ -1711,6 +1736,10 @@ type SubMenuProps = {
|
|
|
1711
1736
|
* Callback when the submenu is opened or closed
|
|
1712
1737
|
*/
|
|
1713
1738
|
onOpenChange?: (open: boolean) => void;
|
|
1739
|
+
/**
|
|
1740
|
+
* Icon to display on the left side of the SubMenu, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1741
|
+
*/
|
|
1742
|
+
icon?: JSX.Element | undefined;
|
|
1714
1743
|
};
|
|
1715
1744
|
declare const SubMenu: {
|
|
1716
1745
|
({ label, description, children, onOpenChange, ...props }: SubMenuProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2151,6 +2180,32 @@ declare const Popover: {
|
|
|
2151
2180
|
displayName: string;
|
|
2152
2181
|
};
|
|
2153
2182
|
|
|
2183
|
+
type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
2184
|
+
/**
|
|
2185
|
+
* Current numeric level of the progress (0 -> max)
|
|
2186
|
+
*/
|
|
2187
|
+
progress: number;
|
|
2188
|
+
/**
|
|
2189
|
+
* The maximum progress value
|
|
2190
|
+
*/
|
|
2191
|
+
max?: number;
|
|
2192
|
+
/**
|
|
2193
|
+
* Slot for additional content to be rendered to the left of the progress bar
|
|
2194
|
+
*/
|
|
2195
|
+
labelLeft?: ReactNode;
|
|
2196
|
+
/**
|
|
2197
|
+
* Slot for additional content to be rendered to the right of the progress bar
|
|
2198
|
+
*/
|
|
2199
|
+
labelRight?: ReactNode;
|
|
2200
|
+
};
|
|
2201
|
+
/**
|
|
2202
|
+
* A progress component that visually represents the completion status of a task
|
|
2203
|
+
*/
|
|
2204
|
+
declare const ProgressBar: {
|
|
2205
|
+
({ progress, max, children, labelLeft, labelRight, ...props }: ProgressBarProps): JSX.Element;
|
|
2206
|
+
displayName: string;
|
|
2207
|
+
};
|
|
2208
|
+
|
|
2154
2209
|
type RadioProps = ComponentPropsWithoutRef<'input'> & {
|
|
2155
2210
|
/**
|
|
2156
2211
|
* Indicates the state of the radio
|
|
@@ -2701,4 +2756,4 @@ declare const WistiaLogo: {
|
|
|
2701
2756
|
displayName: string;
|
|
2702
2757
|
};
|
|
2703
2758
|
|
|
2704
|
-
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, Checkbox, CheckboxGroup, CheckboxMenuItem, 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, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, 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, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|
|
2759
|
+
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, 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, 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, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|