@wistia/ui 0.20.19 → 0.20.20-beta.bac416c1.f13ebbe

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 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';
@@ -665,19 +664,7 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
665
664
  * Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
666
665
  */
667
666
  icon?: JSX.Element;
668
- /**
669
- * Controls the visual prominence of the banner
670
- */
671
- prominence?: 'primary' | 'secondary';
672
667
  colorScheme?: ColorSchemeTypes;
673
- /**
674
- * Optional image element to display in the banner
675
- */
676
- image?: JSX.Element | undefined;
677
- /**
678
- * Controls the layout direction. If set to 'auto', the banner will switch between horizontal and vertical based on the container width.
679
- */
680
- orientation?: 'auto' | 'horizontal' | 'vertical';
681
668
  /**
682
669
  * Primary call-to-action element (typically a [Button]() of the `solid` variant)
683
670
  */
@@ -695,26 +682,10 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
695
682
  * The `Banner` component is for displaying contextual information to the user such as alerts or feature announcements.
696
683
  */
697
684
  declare const Banner: {
698
- ({ bodyText, colorScheme, headingText, icon, image, onClose, orientation, primaryAction, prominence, secondaryAction, ...props }: BannerProps): JSX.Element;
685
+ ({ bodyText, colorScheme, headingText, icon, onClose, primaryAction, secondaryAction, ...props }: BannerProps): JSX.Element;
699
686
  displayName: string;
700
687
  };
701
688
 
702
- type BannerImageProps = ComponentPropsWithoutRef<'div'> & {
703
- /**
704
- * The URL of the image to display in the banner
705
- */
706
- src: string;
707
- /**
708
- * Alternative text description of the image for accessibility
709
- */
710
- alt?: string;
711
- /**
712
- * Position of the image within the banner layout. Only applies in horizontal orientation.
713
- */
714
- alignment?: 'left' | 'right';
715
- };
716
- declare const BannerImage: ({ alignment, alt, src, ...props }: BannerImageProps) => react_jsx_runtime.JSX.Element;
717
-
718
689
  type UnknownRecord = Record<string, unknown>;
719
690
  type PropsOf<Component extends ElementType> = ComponentPropsWithoutRef<Component>;
720
691
  type ExtendedProps<Props = UnknownRecord, OverrideProps = UnknownRecord> = Omit<Props, keyof OverrideProps> & OverrideProps;
@@ -1299,6 +1270,7 @@ declare const iconMap: {
1299
1270
  error: (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1300
1271
  expand: (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1301
1272
  'expand-diagonal': (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1273
+ 'expand-diagonal-window': (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1302
1274
  'expand-horizontal': (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1303
1275
  'fast-forward': (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1304
1276
  favorite: (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
@@ -1462,7 +1434,8 @@ type IconProps = ComponentPropsWithoutRef<'svg'> & {
1462
1434
  invertColor?: boolean;
1463
1435
  /**
1464
1436
  * The size of the icon to display
1465
- *
1437
+ * @type
1438
+ * ResponsiveObject<'sm' | 'md' | 'lg' | 'xl' | 'xxl'> | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
1466
1439
  */
1467
1440
  size?: ResponsiveObject<keyof typeof iconSizeMap> | keyof typeof iconSizeMap;
1468
1441
  /**
@@ -1604,8 +1577,9 @@ declare const ColorPickerTrigger: react.ForwardRefExoticComponent<{
1604
1577
  children?: react.ReactNode | undefined;
1605
1578
  } & react.RefAttributes<HTMLButtonElement>>;
1606
1579
 
1580
+ type ContrastControlsProps = object;
1607
1581
  declare const ContrastControls: {
1608
- (): JSX.Element;
1582
+ (props: ContrastControlsProps): JSX.Element;
1609
1583
  displayName: string;
1610
1584
  };
1611
1585
 
@@ -1620,8 +1594,9 @@ declare const HexColorInput: {
1620
1594
  displayName: string;
1621
1595
  };
1622
1596
 
1597
+ type HueSliderProps = object;
1623
1598
  declare const HueSlider: {
1624
- (): JSX.Element;
1599
+ (props: HueSliderProps): JSX.Element;
1625
1600
  displayName: string;
1626
1601
  };
1627
1602
 
@@ -1633,8 +1608,9 @@ declare const SaturationAndValuePicker: {
1633
1608
  displayName: string;
1634
1609
  };
1635
1610
 
1611
+ type ValueNameOrHexCodeProps = object;
1636
1612
  declare const ValueNameOrHexCode: {
1637
- (): JSX.Element;
1613
+ (props: ValueNameOrHexCodeProps): JSX.Element;
1638
1614
  displayName: string;
1639
1615
  };
1640
1616
 
@@ -1824,8 +1800,9 @@ type DataCardTrendProps = {
1824
1800
  };
1825
1801
  declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
1826
1802
 
1803
+ type DataCardHoverArrowProps = object;
1827
1804
  declare const DataCardHoverArrow: {
1828
- (): react_jsx_runtime.JSX.Element;
1805
+ (props: DataCardHoverArrowProps): react_jsx_runtime.JSX.Element;
1829
1806
  displayName: string;
1830
1807
  };
1831
1808
 
@@ -1941,19 +1918,21 @@ type TextProps = ComponentPropsWithoutRef<'div'> & {
1941
1918
  */
1942
1919
  declare const Text: (<C extends ElementType = "p">(props: PolymorphicComponentProps<C, TextProps>) => react.ReactElement | null) & UnknownRecord;
1943
1920
 
1921
+ type DataListItemLabelProps = TextProps;
1944
1922
  /**
1945
1923
  * The label of the `DataListItem`. Extends the [Text]() component.
1946
1924
  */
1947
1925
  declare const DataListItemLabel: {
1948
- (props: TextProps): JSX.Element;
1926
+ (props: DataListItemLabelProps): JSX.Element;
1949
1927
  displayName: string;
1950
1928
  };
1951
1929
 
1930
+ type DataListItemValueProps = TextProps;
1952
1931
  /**
1953
1932
  * The value of the `DataListItem`. Extends the [Text]() component.
1954
1933
  */
1955
1934
  declare const DataListItemValue: {
1956
- (props: TextProps): JSX.Element;
1935
+ (props: DataListItemValueProps): JSX.Element;
1957
1936
  displayName: string;
1958
1937
  };
1959
1938
 
@@ -2258,9 +2237,10 @@ declare const Label: {
2258
2237
  type EditableTextLabelProps = Omit<LabelProps, 'disabled' | 'htmlFor' | 'required'>;
2259
2238
  declare const EditableTextLabel: ({ ...props }: EditableTextLabelProps) => react_jsx_runtime.JSX.Element;
2260
2239
 
2261
- declare const EditableTextSubmitButton: ({ children, }: {
2240
+ type EditableTextSubmitButtonProps = {
2262
2241
  children: ReactElement;
2263
- }) => JSX.Element | null;
2242
+ };
2243
+ declare const EditableTextSubmitButton: ({ children, }: EditableTextSubmitButtonProps) => JSX.Element | null;
2264
2244
 
2265
2245
  type EditableTextCancelButtonProps = {
2266
2246
  /**
@@ -3126,13 +3106,14 @@ type MenuItemLabelProps = {
3126
3106
  */
3127
3107
  children: ReactNode;
3128
3108
  };
3109
+ declare const MenuItemLabel: ({ children }: MenuItemLabelProps) => react_jsx_runtime.JSX.Element;
3110
+
3129
3111
  type MenuItemDescriptionProps = {
3130
3112
  /**
3131
3113
  * The content of the description
3132
3114
  */
3133
3115
  children: ReactNode;
3134
3116
  };
3135
- declare const MenuItemLabel: ({ children }: MenuItemLabelProps) => react_jsx_runtime.JSX.Element;
3136
3117
  declare const MenuItemDescription: ({ children }: MenuItemDescriptionProps) => react_jsx_runtime.JSX.Element;
3137
3118
 
3138
3119
  type MenuRadioGroupProps = DropdownMenuRadioGroupProps & {
@@ -3225,14 +3206,7 @@ type FilterMenuProps = MenuProps & {
3225
3206
  onSearchValueChange: (value: string) => void;
3226
3207
  };
3227
3208
  declare const FilterMenuItem: {
3228
- ({ onSelect, checked, onCheckedChange, ...props }: _radix_ui_react_dropdown_menu.DropdownMenuCheckboxItemProps & (MenuItemButtonProps & {
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;
3209
+ ({ onSelect, checked, onCheckedChange, ...props }: CheckboxMenuItemProps): react_jsx_runtime.JSX.Element;
3236
3210
  displayName: string;
3237
3211
  };
3238
3212
  declare const FilterMenu: react.ForwardRefExoticComponent<FilterMenuProps & react.RefAttributes<HTMLButtonElement>>;
@@ -3777,6 +3751,14 @@ declare const ScreenReaderOnly: {
3777
3751
  displayName: string;
3778
3752
  };
3779
3753
 
3754
+ type ScrollAreaProps = HTMLAttributes<HTMLDivElement> & {
3755
+ /**
3756
+ * When true, disables scrolling. Useful to temporarily prevent scrolling,
3757
+ * like when drag-and-dropping an item from inside to outside of the scroll
3758
+ * area.
3759
+ */
3760
+ locked?: boolean;
3761
+ };
3780
3762
  /**
3781
3763
  * ScrollArea is a simple scrollable container with shadow effects to indicate
3782
3764
  * scrollability.
@@ -4583,4 +4565,4 @@ declare const WistiaLogo: {
4583
4565
  displayName: string;
4584
4566
  };
4585
4567
 
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 };
4568
+ 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, 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 };