@wistia/ui 0.20.19 → 0.20.20
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.d.ts +30 -20
- package/dist/index.js +1129 -1093
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ import * as Ariakit from '@ariakit/react';
|
|
|
9
9
|
import * as styled_components from 'styled-components';
|
|
10
10
|
import { Schema } from 'yup';
|
|
11
11
|
import ReactMarkdown from 'react-markdown';
|
|
12
|
-
import * as _radix_ui_react_dropdown_menu from '@radix-ui/react-dropdown-menu';
|
|
13
12
|
import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
|
|
14
13
|
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
15
14
|
import { ToggleGroupSingleProps } from '@radix-ui/react-toggle-group';
|
|
@@ -1299,6 +1298,7 @@ declare const iconMap: {
|
|
|
1299
1298
|
error: (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1300
1299
|
expand: (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1301
1300
|
'expand-diagonal': (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1301
|
+
'expand-diagonal-window': (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1302
1302
|
'expand-horizontal': (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1303
1303
|
'fast-forward': (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1304
1304
|
favorite: (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -1462,7 +1462,8 @@ type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
|
1462
1462
|
invertColor?: boolean;
|
|
1463
1463
|
/**
|
|
1464
1464
|
* The size of the icon to display
|
|
1465
|
-
*
|
|
1465
|
+
* @type
|
|
1466
|
+
* ResponsiveObject<'sm' | 'md' | 'lg' | 'xl' | 'xxl'> | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
|
|
1466
1467
|
*/
|
|
1467
1468
|
size?: ResponsiveObject<keyof typeof iconSizeMap> | keyof typeof iconSizeMap;
|
|
1468
1469
|
/**
|
|
@@ -1604,8 +1605,9 @@ declare const ColorPickerTrigger: react.ForwardRefExoticComponent<{
|
|
|
1604
1605
|
children?: react.ReactNode | undefined;
|
|
1605
1606
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1606
1607
|
|
|
1608
|
+
type ContrastControlsProps = object;
|
|
1607
1609
|
declare const ContrastControls: {
|
|
1608
|
-
(): JSX.Element;
|
|
1610
|
+
(props: ContrastControlsProps): JSX.Element;
|
|
1609
1611
|
displayName: string;
|
|
1610
1612
|
};
|
|
1611
1613
|
|
|
@@ -1620,8 +1622,9 @@ declare const HexColorInput: {
|
|
|
1620
1622
|
displayName: string;
|
|
1621
1623
|
};
|
|
1622
1624
|
|
|
1625
|
+
type HueSliderProps = object;
|
|
1623
1626
|
declare const HueSlider: {
|
|
1624
|
-
(): JSX.Element;
|
|
1627
|
+
(props: HueSliderProps): JSX.Element;
|
|
1625
1628
|
displayName: string;
|
|
1626
1629
|
};
|
|
1627
1630
|
|
|
@@ -1633,8 +1636,9 @@ declare const SaturationAndValuePicker: {
|
|
|
1633
1636
|
displayName: string;
|
|
1634
1637
|
};
|
|
1635
1638
|
|
|
1639
|
+
type ValueNameOrHexCodeProps = object;
|
|
1636
1640
|
declare const ValueNameOrHexCode: {
|
|
1637
|
-
(): JSX.Element;
|
|
1641
|
+
(props: ValueNameOrHexCodeProps): JSX.Element;
|
|
1638
1642
|
displayName: string;
|
|
1639
1643
|
};
|
|
1640
1644
|
|
|
@@ -1824,8 +1828,9 @@ type DataCardTrendProps = {
|
|
|
1824
1828
|
};
|
|
1825
1829
|
declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
|
|
1826
1830
|
|
|
1831
|
+
type DataCardHoverArrowProps = object;
|
|
1827
1832
|
declare const DataCardHoverArrow: {
|
|
1828
|
-
(): react_jsx_runtime.JSX.Element;
|
|
1833
|
+
(props: DataCardHoverArrowProps): react_jsx_runtime.JSX.Element;
|
|
1829
1834
|
displayName: string;
|
|
1830
1835
|
};
|
|
1831
1836
|
|
|
@@ -1941,19 +1946,21 @@ type TextProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1941
1946
|
*/
|
|
1942
1947
|
declare const Text: (<C extends ElementType = "p">(props: PolymorphicComponentProps<C, TextProps>) => react.ReactElement | null) & UnknownRecord;
|
|
1943
1948
|
|
|
1949
|
+
type DataListItemLabelProps = TextProps;
|
|
1944
1950
|
/**
|
|
1945
1951
|
* The label of the `DataListItem`. Extends the [Text]() component.
|
|
1946
1952
|
*/
|
|
1947
1953
|
declare const DataListItemLabel: {
|
|
1948
|
-
(props:
|
|
1954
|
+
(props: DataListItemLabelProps): JSX.Element;
|
|
1949
1955
|
displayName: string;
|
|
1950
1956
|
};
|
|
1951
1957
|
|
|
1958
|
+
type DataListItemValueProps = TextProps;
|
|
1952
1959
|
/**
|
|
1953
1960
|
* The value of the `DataListItem`. Extends the [Text]() component.
|
|
1954
1961
|
*/
|
|
1955
1962
|
declare const DataListItemValue: {
|
|
1956
|
-
(props:
|
|
1963
|
+
(props: DataListItemValueProps): JSX.Element;
|
|
1957
1964
|
displayName: string;
|
|
1958
1965
|
};
|
|
1959
1966
|
|
|
@@ -2258,9 +2265,10 @@ declare const Label: {
|
|
|
2258
2265
|
type EditableTextLabelProps = Omit<LabelProps, 'disabled' | 'htmlFor' | 'required'>;
|
|
2259
2266
|
declare const EditableTextLabel: ({ ...props }: EditableTextLabelProps) => react_jsx_runtime.JSX.Element;
|
|
2260
2267
|
|
|
2261
|
-
|
|
2268
|
+
type EditableTextSubmitButtonProps = {
|
|
2262
2269
|
children: ReactElement;
|
|
2263
|
-
}
|
|
2270
|
+
};
|
|
2271
|
+
declare const EditableTextSubmitButton: ({ children, }: EditableTextSubmitButtonProps) => JSX.Element | null;
|
|
2264
2272
|
|
|
2265
2273
|
type EditableTextCancelButtonProps = {
|
|
2266
2274
|
/**
|
|
@@ -3126,13 +3134,14 @@ type MenuItemLabelProps = {
|
|
|
3126
3134
|
*/
|
|
3127
3135
|
children: ReactNode;
|
|
3128
3136
|
};
|
|
3137
|
+
declare const MenuItemLabel: ({ children }: MenuItemLabelProps) => react_jsx_runtime.JSX.Element;
|
|
3138
|
+
|
|
3129
3139
|
type MenuItemDescriptionProps = {
|
|
3130
3140
|
/**
|
|
3131
3141
|
* The content of the description
|
|
3132
3142
|
*/
|
|
3133
3143
|
children: ReactNode;
|
|
3134
3144
|
};
|
|
3135
|
-
declare const MenuItemLabel: ({ children }: MenuItemLabelProps) => react_jsx_runtime.JSX.Element;
|
|
3136
3145
|
declare const MenuItemDescription: ({ children }: MenuItemDescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
3137
3146
|
|
|
3138
3147
|
type MenuRadioGroupProps = DropdownMenuRadioGroupProps & {
|
|
@@ -3225,14 +3234,7 @@ type FilterMenuProps = MenuProps & {
|
|
|
3225
3234
|
onSearchValueChange: (value: string) => void;
|
|
3226
3235
|
};
|
|
3227
3236
|
declare const FilterMenuItem: {
|
|
3228
|
-
({ onSelect, checked, onCheckedChange, ...props }:
|
|
3229
|
-
onCheckedChange: (checked: boolean) => void;
|
|
3230
|
-
indicator?: react.ReactNode;
|
|
3231
|
-
checked: boolean;
|
|
3232
|
-
href?: never;
|
|
3233
|
-
isLoading?: never;
|
|
3234
|
-
ref?: never;
|
|
3235
|
-
})): react_jsx_runtime.JSX.Element;
|
|
3237
|
+
({ onSelect, checked, onCheckedChange, ...props }: CheckboxMenuItemProps): react_jsx_runtime.JSX.Element;
|
|
3236
3238
|
displayName: string;
|
|
3237
3239
|
};
|
|
3238
3240
|
declare const FilterMenu: react.ForwardRefExoticComponent<FilterMenuProps & react.RefAttributes<HTMLButtonElement>>;
|
|
@@ -3777,6 +3779,14 @@ declare const ScreenReaderOnly: {
|
|
|
3777
3779
|
displayName: string;
|
|
3778
3780
|
};
|
|
3779
3781
|
|
|
3782
|
+
type ScrollAreaProps = HTMLAttributes<HTMLDivElement> & {
|
|
3783
|
+
/**
|
|
3784
|
+
* When true, disables scrolling. Useful to temporarily prevent scrolling,
|
|
3785
|
+
* like when drag-and-dropping an item from inside to outside of the scroll
|
|
3786
|
+
* area.
|
|
3787
|
+
*/
|
|
3788
|
+
locked?: boolean;
|
|
3789
|
+
};
|
|
3780
3790
|
/**
|
|
3781
3791
|
* ScrollArea is a simple scrollable container with shadow effects to indicate
|
|
3782
3792
|
* scrollability.
|
|
@@ -4583,4 +4593,4 @@ declare const WistiaLogo: {
|
|
|
4583
4593
|
displayName: string;
|
|
4584
4594
|
};
|
|
4585
4595
|
|
|
4586
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, BannerImage, 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, ColorGrid, ColorGridOption, type ColorGridOptionProps, type ColorGridProps, ColorList, ColorListGroup, type ColorListGroupProps, ColorListOption, type ColorListOptionProps, type ColorListProps, ColorPicker, ColorPickerPopoverContent, type ColorPickerPopoverContentProps, type ColorPickerProps, ColorPickerSection, type ColorPickerSectionProps, ColorPickerTrigger, type ColorPickerTriggerProps, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, ContrastControls, CustomizableThemeWrapper, type CustomizableThemeWrapperProps, DataCard, DataCardHoverArrow, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, DataList, DataListItem, DataListItemLabel, DataListItemValue, type DataListProps, Divider, EditableHeading, type EditableHeadingProps, EditableText, EditableTextCancelButton, EditableTextContext, EditableTextDisplay, EditableTextInput, EditableTextLabel, type EditableTextProps, EditableTextRoot, type EditableTextRootProps, EditableTextSubmitButton, EditableTextTrigger, Ellipsis, type EllipsisProps, FeatureCard, FeatureCardImage, type FeatureCardProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, HexColorInput, type HexColorInputProps, HueSlider, 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, ListItem, type ListItemProps, type ListProps, Mark, type MarkProps, Markdown, type MarkdownProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Meter, type MeterProps, type MeterSegment, Modal, ModalCallout, ModalCallouts, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, ScrollArea, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, SplitButton, type SplitButtonProps, 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 UseActiveMqReturnType, type UseIsHoveredReturnType, type UseMqReturnType, type UseToastProps, ValueNameOrHexCode, ValueSwatch, WistiaLogo, calculateContrast, coerceToBoolean, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useKeyPress, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize, validateWithYup };
|
|
4596
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, BannerImage, 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, ColorGrid, ColorGridOption, type ColorGridOptionProps, type ColorGridProps, ColorList, ColorListGroup, type ColorListGroupProps, ColorListOption, type ColorListOptionProps, type ColorListProps, ColorPicker, ColorPickerPopoverContent, type ColorPickerPopoverContentProps, type ColorPickerProps, ColorPickerSection, type ColorPickerSectionProps, ColorPickerTrigger, type ColorPickerTriggerProps, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, ContrastControls, CustomizableThemeWrapper, type CustomizableThemeWrapperProps, DataCard, DataCardHoverArrow, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, DataList, DataListItem, DataListItemLabel, DataListItemValue, type DataListProps, Divider, EditableHeading, type EditableHeadingProps, EditableText, EditableTextCancelButton, EditableTextContext, EditableTextDisplay, EditableTextInput, EditableTextLabel, type EditableTextProps, EditableTextRoot, type EditableTextRootProps, EditableTextSubmitButton, EditableTextTrigger, Ellipsis, type EllipsisProps, FeatureCard, FeatureCardImage, type FeatureCardProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, HexColorInput, type HexColorInputProps, HueSlider, 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, ListItem, type ListItemProps, type ListProps, Mark, type MarkProps, Markdown, type MarkdownProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Meter, type MeterProps, type MeterSegment, Modal, ModalCallout, ModalCallouts, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, ScrollArea, type ScrollAreaProps, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, SplitButton, type SplitButtonProps, 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 UseActiveMqReturnType, type UseIsHoveredReturnType, type UseMqReturnType, type UseToastProps, ValueNameOrHexCode, ValueSwatch, WistiaLogo, calculateContrast, coerceToBoolean, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useKeyPress, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize, validateWithYup };
|