@wistia/ui 0.13.0 → 0.13.1
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 +231 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +34 -2
- package/dist/index.d.ts +34 -2
- package/dist/index.mjs +183 -90
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1703,13 +1703,20 @@ declare const FormField: {
|
|
|
1703
1703
|
|
|
1704
1704
|
type FormGroupProps = Omit<ComponentPropsWithoutRef<'fieldset'>, 'onChange'> & {
|
|
1705
1705
|
children: ReactNode;
|
|
1706
|
+
/**
|
|
1707
|
+
* The label for the form group
|
|
1708
|
+
*/
|
|
1706
1709
|
label?: ReactNode;
|
|
1710
|
+
/**
|
|
1711
|
+
* The description for the form group
|
|
1712
|
+
*/
|
|
1713
|
+
description?: ReactNode;
|
|
1707
1714
|
};
|
|
1708
1715
|
/**
|
|
1709
1716
|
* For grouping like form elements together.
|
|
1710
1717
|
*/
|
|
1711
1718
|
declare const FormGroup: {
|
|
1712
|
-
({ children, label, ...props }: FormGroupProps): JSX.Element;
|
|
1719
|
+
({ children, label, description, ...props }: FormGroupProps): JSX.Element;
|
|
1713
1720
|
displayName: string;
|
|
1714
1721
|
};
|
|
1715
1722
|
|
|
@@ -2102,6 +2109,10 @@ type UncontrolledMenuProps = {
|
|
|
2102
2109
|
};
|
|
2103
2110
|
type MenuControlProps = ControlledMenuProps | UncontrolledMenuProps;
|
|
2104
2111
|
type MenuProps = MenuControlProps & {
|
|
2112
|
+
/**
|
|
2113
|
+
* @ignore
|
|
2114
|
+
*/
|
|
2115
|
+
avoidCollisions?: boolean;
|
|
2105
2116
|
/**
|
|
2106
2117
|
* The position of the Menu
|
|
2107
2118
|
*/
|
|
@@ -3707,4 +3718,25 @@ declare const InputPassword: react.ForwardRefExoticComponent<Omit<InputProps, "t
|
|
|
3707
3718
|
onVisibilityToggle?: (isVisible: boolean) => void;
|
|
3708
3719
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
3709
3720
|
|
|
3710
|
-
|
|
3721
|
+
type ContextMenuProps = {
|
|
3722
|
+
children: ReactNode;
|
|
3723
|
+
onRequestClose?: () => void;
|
|
3724
|
+
} & ({
|
|
3725
|
+
position: {
|
|
3726
|
+
x: number;
|
|
3727
|
+
y: number;
|
|
3728
|
+
};
|
|
3729
|
+
triggerRef?: never;
|
|
3730
|
+
} | {
|
|
3731
|
+
position?: never;
|
|
3732
|
+
triggerRef: RefObject<HTMLElement>;
|
|
3733
|
+
});
|
|
3734
|
+
/**
|
|
3735
|
+
* The ContextMenu is an extended implementation of the [Menu]() component that allows for right-click context menus.
|
|
3736
|
+
* It can be used in two ways:
|
|
3737
|
+
* 1. By providing a `triggerRef`, which will render the menu when the referenced element is right-clicked.
|
|
3738
|
+
* 2. By providing a `position` prop, which will render the menu at the specified coordinates.
|
|
3739
|
+
*/
|
|
3740
|
+
declare const ContextMenu: ({ position, triggerRef, children, onRequestClose, }: ContextMenuProps) => react_jsx_runtime.JSX.Element | null;
|
|
3741
|
+
|
|
3742
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, type BannerProps, 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, CollapsibleTriggerIcon, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, InputPassword, type InputPasswordProps, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, type LabelProps, Link, type LinkProps, List, type ListProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, Stack, SubMenu, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -1703,13 +1703,20 @@ declare const FormField: {
|
|
|
1703
1703
|
|
|
1704
1704
|
type FormGroupProps = Omit<ComponentPropsWithoutRef<'fieldset'>, 'onChange'> & {
|
|
1705
1705
|
children: ReactNode;
|
|
1706
|
+
/**
|
|
1707
|
+
* The label for the form group
|
|
1708
|
+
*/
|
|
1706
1709
|
label?: ReactNode;
|
|
1710
|
+
/**
|
|
1711
|
+
* The description for the form group
|
|
1712
|
+
*/
|
|
1713
|
+
description?: ReactNode;
|
|
1707
1714
|
};
|
|
1708
1715
|
/**
|
|
1709
1716
|
* For grouping like form elements together.
|
|
1710
1717
|
*/
|
|
1711
1718
|
declare const FormGroup: {
|
|
1712
|
-
({ children, label, ...props }: FormGroupProps): JSX.Element;
|
|
1719
|
+
({ children, label, description, ...props }: FormGroupProps): JSX.Element;
|
|
1713
1720
|
displayName: string;
|
|
1714
1721
|
};
|
|
1715
1722
|
|
|
@@ -2102,6 +2109,10 @@ type UncontrolledMenuProps = {
|
|
|
2102
2109
|
};
|
|
2103
2110
|
type MenuControlProps = ControlledMenuProps | UncontrolledMenuProps;
|
|
2104
2111
|
type MenuProps = MenuControlProps & {
|
|
2112
|
+
/**
|
|
2113
|
+
* @ignore
|
|
2114
|
+
*/
|
|
2115
|
+
avoidCollisions?: boolean;
|
|
2105
2116
|
/**
|
|
2106
2117
|
* The position of the Menu
|
|
2107
2118
|
*/
|
|
@@ -3707,4 +3718,25 @@ declare const InputPassword: react.ForwardRefExoticComponent<Omit<InputProps, "t
|
|
|
3707
3718
|
onVisibilityToggle?: (isVisible: boolean) => void;
|
|
3708
3719
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
3709
3720
|
|
|
3710
|
-
|
|
3721
|
+
type ContextMenuProps = {
|
|
3722
|
+
children: ReactNode;
|
|
3723
|
+
onRequestClose?: () => void;
|
|
3724
|
+
} & ({
|
|
3725
|
+
position: {
|
|
3726
|
+
x: number;
|
|
3727
|
+
y: number;
|
|
3728
|
+
};
|
|
3729
|
+
triggerRef?: never;
|
|
3730
|
+
} | {
|
|
3731
|
+
position?: never;
|
|
3732
|
+
triggerRef: RefObject<HTMLElement>;
|
|
3733
|
+
});
|
|
3734
|
+
/**
|
|
3735
|
+
* The ContextMenu is an extended implementation of the [Menu]() component that allows for right-click context menus.
|
|
3736
|
+
* It can be used in two ways:
|
|
3737
|
+
* 1. By providing a `triggerRef`, which will render the menu when the referenced element is right-clicked.
|
|
3738
|
+
* 2. By providing a `position` prop, which will render the menu at the specified coordinates.
|
|
3739
|
+
*/
|
|
3740
|
+
declare const ContextMenu: ({ position, triggerRef, children, onRequestClose, }: ContextMenuProps) => react_jsx_runtime.JSX.Element | null;
|
|
3741
|
+
|
|
3742
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, type BannerProps, 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, CollapsibleTriggerIcon, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, InputPassword, type InputPasswordProps, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, type LabelProps, Link, type LinkProps, List, type ListProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, Stack, SubMenu, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
|