@wistia/ui 0.20.19-beta.e29245ae.db7a273 → 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 +29 -20
- package/dist/index.js +497 -480
- 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';
|
|
@@ -1463,7 +1462,8 @@ type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
|
1463
1462
|
invertColor?: boolean;
|
|
1464
1463
|
/**
|
|
1465
1464
|
* The size of the icon to display
|
|
1466
|
-
*
|
|
1465
|
+
* @type
|
|
1466
|
+
* ResponsiveObject<'sm' | 'md' | 'lg' | 'xl' | 'xxl'> | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
|
|
1467
1467
|
*/
|
|
1468
1468
|
size?: ResponsiveObject<keyof typeof iconSizeMap> | keyof typeof iconSizeMap;
|
|
1469
1469
|
/**
|
|
@@ -1605,8 +1605,9 @@ declare const ColorPickerTrigger: react.ForwardRefExoticComponent<{
|
|
|
1605
1605
|
children?: react.ReactNode | undefined;
|
|
1606
1606
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1607
1607
|
|
|
1608
|
+
type ContrastControlsProps = object;
|
|
1608
1609
|
declare const ContrastControls: {
|
|
1609
|
-
(): JSX.Element;
|
|
1610
|
+
(props: ContrastControlsProps): JSX.Element;
|
|
1610
1611
|
displayName: string;
|
|
1611
1612
|
};
|
|
1612
1613
|
|
|
@@ -1621,8 +1622,9 @@ declare const HexColorInput: {
|
|
|
1621
1622
|
displayName: string;
|
|
1622
1623
|
};
|
|
1623
1624
|
|
|
1625
|
+
type HueSliderProps = object;
|
|
1624
1626
|
declare const HueSlider: {
|
|
1625
|
-
(): JSX.Element;
|
|
1627
|
+
(props: HueSliderProps): JSX.Element;
|
|
1626
1628
|
displayName: string;
|
|
1627
1629
|
};
|
|
1628
1630
|
|
|
@@ -1634,8 +1636,9 @@ declare const SaturationAndValuePicker: {
|
|
|
1634
1636
|
displayName: string;
|
|
1635
1637
|
};
|
|
1636
1638
|
|
|
1639
|
+
type ValueNameOrHexCodeProps = object;
|
|
1637
1640
|
declare const ValueNameOrHexCode: {
|
|
1638
|
-
(): JSX.Element;
|
|
1641
|
+
(props: ValueNameOrHexCodeProps): JSX.Element;
|
|
1639
1642
|
displayName: string;
|
|
1640
1643
|
};
|
|
1641
1644
|
|
|
@@ -1825,8 +1828,9 @@ type DataCardTrendProps = {
|
|
|
1825
1828
|
};
|
|
1826
1829
|
declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
|
|
1827
1830
|
|
|
1831
|
+
type DataCardHoverArrowProps = object;
|
|
1828
1832
|
declare const DataCardHoverArrow: {
|
|
1829
|
-
(): react_jsx_runtime.JSX.Element;
|
|
1833
|
+
(props: DataCardHoverArrowProps): react_jsx_runtime.JSX.Element;
|
|
1830
1834
|
displayName: string;
|
|
1831
1835
|
};
|
|
1832
1836
|
|
|
@@ -1942,19 +1946,21 @@ type TextProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1942
1946
|
*/
|
|
1943
1947
|
declare const Text: (<C extends ElementType = "p">(props: PolymorphicComponentProps<C, TextProps>) => react.ReactElement | null) & UnknownRecord;
|
|
1944
1948
|
|
|
1949
|
+
type DataListItemLabelProps = TextProps;
|
|
1945
1950
|
/**
|
|
1946
1951
|
* The label of the `DataListItem`. Extends the [Text]() component.
|
|
1947
1952
|
*/
|
|
1948
1953
|
declare const DataListItemLabel: {
|
|
1949
|
-
(props:
|
|
1954
|
+
(props: DataListItemLabelProps): JSX.Element;
|
|
1950
1955
|
displayName: string;
|
|
1951
1956
|
};
|
|
1952
1957
|
|
|
1958
|
+
type DataListItemValueProps = TextProps;
|
|
1953
1959
|
/**
|
|
1954
1960
|
* The value of the `DataListItem`. Extends the [Text]() component.
|
|
1955
1961
|
*/
|
|
1956
1962
|
declare const DataListItemValue: {
|
|
1957
|
-
(props:
|
|
1963
|
+
(props: DataListItemValueProps): JSX.Element;
|
|
1958
1964
|
displayName: string;
|
|
1959
1965
|
};
|
|
1960
1966
|
|
|
@@ -2259,9 +2265,10 @@ declare const Label: {
|
|
|
2259
2265
|
type EditableTextLabelProps = Omit<LabelProps, 'disabled' | 'htmlFor' | 'required'>;
|
|
2260
2266
|
declare const EditableTextLabel: ({ ...props }: EditableTextLabelProps) => react_jsx_runtime.JSX.Element;
|
|
2261
2267
|
|
|
2262
|
-
|
|
2268
|
+
type EditableTextSubmitButtonProps = {
|
|
2263
2269
|
children: ReactElement;
|
|
2264
|
-
}
|
|
2270
|
+
};
|
|
2271
|
+
declare const EditableTextSubmitButton: ({ children, }: EditableTextSubmitButtonProps) => JSX.Element | null;
|
|
2265
2272
|
|
|
2266
2273
|
type EditableTextCancelButtonProps = {
|
|
2267
2274
|
/**
|
|
@@ -3127,13 +3134,14 @@ type MenuItemLabelProps = {
|
|
|
3127
3134
|
*/
|
|
3128
3135
|
children: ReactNode;
|
|
3129
3136
|
};
|
|
3137
|
+
declare const MenuItemLabel: ({ children }: MenuItemLabelProps) => react_jsx_runtime.JSX.Element;
|
|
3138
|
+
|
|
3130
3139
|
type MenuItemDescriptionProps = {
|
|
3131
3140
|
/**
|
|
3132
3141
|
* The content of the description
|
|
3133
3142
|
*/
|
|
3134
3143
|
children: ReactNode;
|
|
3135
3144
|
};
|
|
3136
|
-
declare const MenuItemLabel: ({ children }: MenuItemLabelProps) => react_jsx_runtime.JSX.Element;
|
|
3137
3145
|
declare const MenuItemDescription: ({ children }: MenuItemDescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
3138
3146
|
|
|
3139
3147
|
type MenuRadioGroupProps = DropdownMenuRadioGroupProps & {
|
|
@@ -3226,14 +3234,7 @@ type FilterMenuProps = MenuProps & {
|
|
|
3226
3234
|
onSearchValueChange: (value: string) => void;
|
|
3227
3235
|
};
|
|
3228
3236
|
declare const FilterMenuItem: {
|
|
3229
|
-
({ onSelect, checked, onCheckedChange, ...props }:
|
|
3230
|
-
onCheckedChange: (checked: boolean) => void;
|
|
3231
|
-
indicator?: react.ReactNode;
|
|
3232
|
-
checked: boolean;
|
|
3233
|
-
href?: never;
|
|
3234
|
-
isLoading?: never;
|
|
3235
|
-
ref?: never;
|
|
3236
|
-
})): react_jsx_runtime.JSX.Element;
|
|
3237
|
+
({ onSelect, checked, onCheckedChange, ...props }: CheckboxMenuItemProps): react_jsx_runtime.JSX.Element;
|
|
3237
3238
|
displayName: string;
|
|
3238
3239
|
};
|
|
3239
3240
|
declare const FilterMenu: react.ForwardRefExoticComponent<FilterMenuProps & react.RefAttributes<HTMLButtonElement>>;
|
|
@@ -3778,6 +3779,14 @@ declare const ScreenReaderOnly: {
|
|
|
3778
3779
|
displayName: string;
|
|
3779
3780
|
};
|
|
3780
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
|
+
};
|
|
3781
3790
|
/**
|
|
3782
3791
|
* ScrollArea is a simple scrollable container with shadow effects to indicate
|
|
3783
3792
|
* scrollability.
|
|
@@ -4584,4 +4593,4 @@ declare const WistiaLogo: {
|
|
|
4584
4593
|
displayName: string;
|
|
4585
4594
|
};
|
|
4586
4595
|
|
|
4587
|
-
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 };
|