@wistia/ui 0.6.40 → 0.6.41-beta.c3bbd05d.43de7c7

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.mts CHANGED
@@ -8,6 +8,7 @@ import * as react_router from 'react-router';
8
8
  import { LinkProps as LinkProps$1 } from 'react-router-dom';
9
9
  import { CollapsibleContentProps as CollapsibleContentProps$1 } from '@radix-ui/react-collapsible';
10
10
  import * as styled_components from 'styled-components';
11
+ import { FlattenSimpleInterpolation } from 'styled-components';
11
12
  import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
12
13
  import { PopoverContentProps } from '@radix-ui/react-popover';
13
14
  import { ToggleGroupSingleProps } from '@radix-ui/react-toggle-group';
@@ -552,6 +553,9 @@ type UnknownRecord = Record<string, unknown>;
552
553
  type PropsOf<Component extends ElementType> = ComponentPropsWithoutRef<Component>;
553
554
  type ExtendedProps<Props = UnknownRecord, OverrideProps = UnknownRecord> = Omit<Props, keyof OverrideProps> & OverrideProps;
554
555
  type ComponentProp<Component extends ElementType> = {
556
+ /**
557
+ * The component or HTML element to render as the root instead of the default.
558
+ */
555
559
  renderAs?: Component;
556
560
  };
557
561
  /**
@@ -2316,6 +2320,14 @@ type PopoverProps = ContentProps & PopoverControlProps & {
2316
2320
  * The content of the popover
2317
2321
  */
2318
2322
  children: ReactNode;
2323
+ /**
2324
+ * The maximum width of the popover
2325
+ */
2326
+ maxWidth?: string;
2327
+ /**
2328
+ * The maximum height of the popover
2329
+ */
2330
+ maxHeight?: string;
2319
2331
  /**
2320
2332
  * Determines if the close button is visible (if false, `esc` will still close the Modal)
2321
2333
  */
@@ -2333,7 +2345,7 @@ type PopoverProps = ContentProps & PopoverControlProps & {
2333
2345
  * Displays rich content in a portal, triggered by a button.
2334
2346
  */
2335
2347
  declare const Popover: {
2336
- ({ children, trigger, isOpen, hideCloseButton, onOpenChange, unstyled, ...props }: PopoverProps): JSX.Element;
2348
+ ({ children, trigger, isOpen, hideCloseButton, maxWidth, maxHeight, onOpenChange, unstyled, ...props }: PopoverProps): JSX.Element;
2337
2349
  displayName: string;
2338
2350
  };
2339
2351
 
@@ -3037,4 +3049,84 @@ declare const WistiaLogo: {
3037
3049
  displayName: string;
3038
3050
  };
3039
3051
 
3040
- 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, Center, type CenterProps, 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, Switch, type SwitchProps, 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, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useFocusTrap, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
3052
+ type ThumbnailBadgeProps = {
3053
+ /**
3054
+ * Icon to display on the left side of the badge
3055
+ */
3056
+ icon?: JSX.Element | undefined;
3057
+ /**
3058
+ * Text content to display in the badge
3059
+ */
3060
+ label: string;
3061
+ };
3062
+ declare const ThumbnailBadge: {
3063
+ ({ icon, label, ...otherProps }: ThumbnailBadgeProps): JSX.Element;
3064
+ displayName: string;
3065
+ };
3066
+
3067
+ declare const gradients: {
3068
+ defaultDarkOne: FlattenSimpleInterpolation;
3069
+ defaultDarkTwo: FlattenSimpleInterpolation;
3070
+ defaultLightOne: FlattenSimpleInterpolation;
3071
+ defaultLightTwo: FlattenSimpleInterpolation;
3072
+ defaultMidOne: FlattenSimpleInterpolation;
3073
+ defaultMidTwo: FlattenSimpleInterpolation;
3074
+ green: FlattenSimpleInterpolation;
3075
+ greenWithPop: FlattenSimpleInterpolation;
3076
+ pink: FlattenSimpleInterpolation;
3077
+ pinkWithPop: FlattenSimpleInterpolation;
3078
+ playfulGradientOne: FlattenSimpleInterpolation;
3079
+ playfulGradientTwo: FlattenSimpleInterpolation;
3080
+ purple: FlattenSimpleInterpolation;
3081
+ purpleWithPop: FlattenSimpleInterpolation;
3082
+ yellow: FlattenSimpleInterpolation;
3083
+ yellowWithPop: FlattenSimpleInterpolation;
3084
+ };
3085
+ type GradientNameType = keyof typeof gradients;
3086
+
3087
+ type ThumbnailProps = ComponentPropsWithoutRef<'div'> & {
3088
+ /**
3089
+ * The type of gradient to show either behind the icon or when there is no thumbnail image
3090
+ */
3091
+ gradientBackground?: GradientNameType;
3092
+ /**
3093
+ * Width of the thumbnail. By default, the thumbnail will grow to fit its container.
3094
+ */
3095
+ width?: string;
3096
+ /**
3097
+ * The desired display of the thumbnail, either wide or square
3098
+ */
3099
+ thumbnailImageType?: 'square' | 'wide' | undefined;
3100
+ /**
3101
+ * The URL of the thumbnail image to display
3102
+ */
3103
+ thumbnailUrl: string | null;
3104
+ /**
3105
+ * Children to render inside the thumbnail; must be a `ThumbnailBadge` component
3106
+ */
3107
+ children?: ReactNode;
3108
+ };
3109
+ declare const Thumbnail: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3110
+ /**
3111
+ * The type of gradient to show either behind the icon or when there is no thumbnail image
3112
+ */
3113
+ gradientBackground?: GradientNameType;
3114
+ /**
3115
+ * Width of the thumbnail. By default, the thumbnail will grow to fit its container.
3116
+ */
3117
+ width?: string;
3118
+ /**
3119
+ * The desired display of the thumbnail, either wide or square
3120
+ */
3121
+ thumbnailImageType?: "square" | "wide" | undefined;
3122
+ /**
3123
+ * The URL of the thumbnail image to display
3124
+ */
3125
+ thumbnailUrl: string | null;
3126
+ /**
3127
+ * Children to render inside the thumbnail; must be a `ThumbnailBadge` component
3128
+ */
3129
+ children?: ReactNode;
3130
+ } & react.RefAttributes<HTMLDivElement>>;
3131
+
3132
+ 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, Center, type CenterProps, 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, Switch, type SwitchProps, 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, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useFocusTrap, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import * as react_router from 'react-router';
8
8
  import { LinkProps as LinkProps$1 } from 'react-router-dom';
9
9
  import { CollapsibleContentProps as CollapsibleContentProps$1 } from '@radix-ui/react-collapsible';
10
10
  import * as styled_components from 'styled-components';
11
+ import { FlattenSimpleInterpolation } from 'styled-components';
11
12
  import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
12
13
  import { PopoverContentProps } from '@radix-ui/react-popover';
13
14
  import { ToggleGroupSingleProps } from '@radix-ui/react-toggle-group';
@@ -552,6 +553,9 @@ type UnknownRecord = Record<string, unknown>;
552
553
  type PropsOf<Component extends ElementType> = ComponentPropsWithoutRef<Component>;
553
554
  type ExtendedProps<Props = UnknownRecord, OverrideProps = UnknownRecord> = Omit<Props, keyof OverrideProps> & OverrideProps;
554
555
  type ComponentProp<Component extends ElementType> = {
556
+ /**
557
+ * The component or HTML element to render as the root instead of the default.
558
+ */
555
559
  renderAs?: Component;
556
560
  };
557
561
  /**
@@ -2316,6 +2320,14 @@ type PopoverProps = ContentProps & PopoverControlProps & {
2316
2320
  * The content of the popover
2317
2321
  */
2318
2322
  children: ReactNode;
2323
+ /**
2324
+ * The maximum width of the popover
2325
+ */
2326
+ maxWidth?: string;
2327
+ /**
2328
+ * The maximum height of the popover
2329
+ */
2330
+ maxHeight?: string;
2319
2331
  /**
2320
2332
  * Determines if the close button is visible (if false, `esc` will still close the Modal)
2321
2333
  */
@@ -2333,7 +2345,7 @@ type PopoverProps = ContentProps & PopoverControlProps & {
2333
2345
  * Displays rich content in a portal, triggered by a button.
2334
2346
  */
2335
2347
  declare const Popover: {
2336
- ({ children, trigger, isOpen, hideCloseButton, onOpenChange, unstyled, ...props }: PopoverProps): JSX.Element;
2348
+ ({ children, trigger, isOpen, hideCloseButton, maxWidth, maxHeight, onOpenChange, unstyled, ...props }: PopoverProps): JSX.Element;
2337
2349
  displayName: string;
2338
2350
  };
2339
2351
 
@@ -3037,4 +3049,84 @@ declare const WistiaLogo: {
3037
3049
  displayName: string;
3038
3050
  };
3039
3051
 
3040
- 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, Center, type CenterProps, 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, Switch, type SwitchProps, 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, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useFocusTrap, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
3052
+ type ThumbnailBadgeProps = {
3053
+ /**
3054
+ * Icon to display on the left side of the badge
3055
+ */
3056
+ icon?: JSX.Element | undefined;
3057
+ /**
3058
+ * Text content to display in the badge
3059
+ */
3060
+ label: string;
3061
+ };
3062
+ declare const ThumbnailBadge: {
3063
+ ({ icon, label, ...otherProps }: ThumbnailBadgeProps): JSX.Element;
3064
+ displayName: string;
3065
+ };
3066
+
3067
+ declare const gradients: {
3068
+ defaultDarkOne: FlattenSimpleInterpolation;
3069
+ defaultDarkTwo: FlattenSimpleInterpolation;
3070
+ defaultLightOne: FlattenSimpleInterpolation;
3071
+ defaultLightTwo: FlattenSimpleInterpolation;
3072
+ defaultMidOne: FlattenSimpleInterpolation;
3073
+ defaultMidTwo: FlattenSimpleInterpolation;
3074
+ green: FlattenSimpleInterpolation;
3075
+ greenWithPop: FlattenSimpleInterpolation;
3076
+ pink: FlattenSimpleInterpolation;
3077
+ pinkWithPop: FlattenSimpleInterpolation;
3078
+ playfulGradientOne: FlattenSimpleInterpolation;
3079
+ playfulGradientTwo: FlattenSimpleInterpolation;
3080
+ purple: FlattenSimpleInterpolation;
3081
+ purpleWithPop: FlattenSimpleInterpolation;
3082
+ yellow: FlattenSimpleInterpolation;
3083
+ yellowWithPop: FlattenSimpleInterpolation;
3084
+ };
3085
+ type GradientNameType = keyof typeof gradients;
3086
+
3087
+ type ThumbnailProps = ComponentPropsWithoutRef<'div'> & {
3088
+ /**
3089
+ * The type of gradient to show either behind the icon or when there is no thumbnail image
3090
+ */
3091
+ gradientBackground?: GradientNameType;
3092
+ /**
3093
+ * Width of the thumbnail. By default, the thumbnail will grow to fit its container.
3094
+ */
3095
+ width?: string;
3096
+ /**
3097
+ * The desired display of the thumbnail, either wide or square
3098
+ */
3099
+ thumbnailImageType?: 'square' | 'wide' | undefined;
3100
+ /**
3101
+ * The URL of the thumbnail image to display
3102
+ */
3103
+ thumbnailUrl: string | null;
3104
+ /**
3105
+ * Children to render inside the thumbnail; must be a `ThumbnailBadge` component
3106
+ */
3107
+ children?: ReactNode;
3108
+ };
3109
+ declare const Thumbnail: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3110
+ /**
3111
+ * The type of gradient to show either behind the icon or when there is no thumbnail image
3112
+ */
3113
+ gradientBackground?: GradientNameType;
3114
+ /**
3115
+ * Width of the thumbnail. By default, the thumbnail will grow to fit its container.
3116
+ */
3117
+ width?: string;
3118
+ /**
3119
+ * The desired display of the thumbnail, either wide or square
3120
+ */
3121
+ thumbnailImageType?: "square" | "wide" | undefined;
3122
+ /**
3123
+ * The URL of the thumbnail image to display
3124
+ */
3125
+ thumbnailUrl: string | null;
3126
+ /**
3127
+ * Children to render inside the thumbnail; must be a `ThumbnailBadge` component
3128
+ */
3129
+ children?: ReactNode;
3130
+ } & react.RefAttributes<HTMLDivElement>>;
3131
+
3132
+ 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, Center, type CenterProps, 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, Switch, type SwitchProps, 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, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useFocusTrap, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };