@wistia/ui 0.6.38-beta.e013f95e.b698402 → 0.6.39

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,7 +8,6 @@ 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';
12
11
  import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
13
12
  import { PopoverContentProps } from '@radix-ui/react-popover';
14
13
  import { ToggleGroupSingleProps } from '@radix-ui/react-toggle-group';
@@ -3032,84 +3031,4 @@ declare const WistiaLogo: {
3032
3031
  displayName: string;
3033
3032
  };
3034
3033
 
3035
- declare const gradients: {
3036
- defaultDarkOne: FlattenSimpleInterpolation;
3037
- defaultDarkTwo: FlattenSimpleInterpolation;
3038
- defaultLightOne: FlattenSimpleInterpolation;
3039
- defaultLightTwo: FlattenSimpleInterpolation;
3040
- defaultMidOne: FlattenSimpleInterpolation;
3041
- defaultMidTwo: FlattenSimpleInterpolation;
3042
- green: FlattenSimpleInterpolation;
3043
- greenWithPop: FlattenSimpleInterpolation;
3044
- pink: FlattenSimpleInterpolation;
3045
- pinkWithPop: FlattenSimpleInterpolation;
3046
- playfulGradientOne: FlattenSimpleInterpolation;
3047
- playfulGradientTwo: FlattenSimpleInterpolation;
3048
- purple: FlattenSimpleInterpolation;
3049
- purpleWithPop: FlattenSimpleInterpolation;
3050
- yellow: FlattenSimpleInterpolation;
3051
- yellowWithPop: FlattenSimpleInterpolation;
3052
- };
3053
- type GradientNameType = keyof typeof gradients;
3054
-
3055
- type ThumbnailProps = ComponentPropsWithoutRef<'div'> & {
3056
- /**
3057
- * The type of gradient to show either behind the icon or when there is no thumbnail image
3058
- */
3059
- gradientBackground?: GradientNameType;
3060
- /**
3061
- * Width of the thumbnail. By default, the thumbnail will grow to fit its container.
3062
- */
3063
- width?: string;
3064
- /**
3065
- * The desired display of the thumbnail, either wide or square
3066
- */
3067
- thumbnailImageType?: 'square' | 'wide' | undefined;
3068
- /**
3069
- * The URL of the thumbnail image to display
3070
- */
3071
- thumbnailUrl: string | null;
3072
- /**
3073
- * Children to render inside the thumbnail; must be a `ThumbnailOverlay` component
3074
- */
3075
- children?: ReactNode;
3076
- };
3077
- declare const Thumbnail: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3078
- /**
3079
- * The type of gradient to show either behind the icon or when there is no thumbnail image
3080
- */
3081
- gradientBackground?: GradientNameType;
3082
- /**
3083
- * Width of the thumbnail. By default, the thumbnail will grow to fit its container.
3084
- */
3085
- width?: string;
3086
- /**
3087
- * The desired display of the thumbnail, either wide or square
3088
- */
3089
- thumbnailImageType?: "square" | "wide" | undefined;
3090
- /**
3091
- * The URL of the thumbnail image to display
3092
- */
3093
- thumbnailUrl: string | null;
3094
- /**
3095
- * Children to render inside the thumbnail; must be a `ThumbnailOverlay` component
3096
- */
3097
- children?: ReactNode;
3098
- } & react.RefAttributes<HTMLDivElement>>;
3099
-
3100
- type ThumbnailOverlayProps = {
3101
- /**
3102
- * Icon to display on the left side of the overlay
3103
- */
3104
- icon?: JSX.Element | undefined;
3105
- /**
3106
- * Text content to display in the overlay
3107
- */
3108
- label: string;
3109
- };
3110
- declare const ThumbnailOverlay: {
3111
- ({ icon, label }: ThumbnailOverlayProps): JSX.Element;
3112
- displayName: string;
3113
- };
3114
-
3115
- 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, ThumbnailOverlay, type ThumbnailOverlayProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
3034
+ 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, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -8,7 +8,6 @@ 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';
12
11
  import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
13
12
  import { PopoverContentProps } from '@radix-ui/react-popover';
14
13
  import { ToggleGroupSingleProps } from '@radix-ui/react-toggle-group';
@@ -3032,84 +3031,4 @@ declare const WistiaLogo: {
3032
3031
  displayName: string;
3033
3032
  };
3034
3033
 
3035
- declare const gradients: {
3036
- defaultDarkOne: FlattenSimpleInterpolation;
3037
- defaultDarkTwo: FlattenSimpleInterpolation;
3038
- defaultLightOne: FlattenSimpleInterpolation;
3039
- defaultLightTwo: FlattenSimpleInterpolation;
3040
- defaultMidOne: FlattenSimpleInterpolation;
3041
- defaultMidTwo: FlattenSimpleInterpolation;
3042
- green: FlattenSimpleInterpolation;
3043
- greenWithPop: FlattenSimpleInterpolation;
3044
- pink: FlattenSimpleInterpolation;
3045
- pinkWithPop: FlattenSimpleInterpolation;
3046
- playfulGradientOne: FlattenSimpleInterpolation;
3047
- playfulGradientTwo: FlattenSimpleInterpolation;
3048
- purple: FlattenSimpleInterpolation;
3049
- purpleWithPop: FlattenSimpleInterpolation;
3050
- yellow: FlattenSimpleInterpolation;
3051
- yellowWithPop: FlattenSimpleInterpolation;
3052
- };
3053
- type GradientNameType = keyof typeof gradients;
3054
-
3055
- type ThumbnailProps = ComponentPropsWithoutRef<'div'> & {
3056
- /**
3057
- * The type of gradient to show either behind the icon or when there is no thumbnail image
3058
- */
3059
- gradientBackground?: GradientNameType;
3060
- /**
3061
- * Width of the thumbnail. By default, the thumbnail will grow to fit its container.
3062
- */
3063
- width?: string;
3064
- /**
3065
- * The desired display of the thumbnail, either wide or square
3066
- */
3067
- thumbnailImageType?: 'square' | 'wide' | undefined;
3068
- /**
3069
- * The URL of the thumbnail image to display
3070
- */
3071
- thumbnailUrl: string | null;
3072
- /**
3073
- * Children to render inside the thumbnail; must be a `ThumbnailOverlay` component
3074
- */
3075
- children?: ReactNode;
3076
- };
3077
- declare const Thumbnail: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3078
- /**
3079
- * The type of gradient to show either behind the icon or when there is no thumbnail image
3080
- */
3081
- gradientBackground?: GradientNameType;
3082
- /**
3083
- * Width of the thumbnail. By default, the thumbnail will grow to fit its container.
3084
- */
3085
- width?: string;
3086
- /**
3087
- * The desired display of the thumbnail, either wide or square
3088
- */
3089
- thumbnailImageType?: "square" | "wide" | undefined;
3090
- /**
3091
- * The URL of the thumbnail image to display
3092
- */
3093
- thumbnailUrl: string | null;
3094
- /**
3095
- * Children to render inside the thumbnail; must be a `ThumbnailOverlay` component
3096
- */
3097
- children?: ReactNode;
3098
- } & react.RefAttributes<HTMLDivElement>>;
3099
-
3100
- type ThumbnailOverlayProps = {
3101
- /**
3102
- * Icon to display on the left side of the overlay
3103
- */
3104
- icon?: JSX.Element | undefined;
3105
- /**
3106
- * Text content to display in the overlay
3107
- */
3108
- label: string;
3109
- };
3110
- declare const ThumbnailOverlay: {
3111
- ({ icon, label }: ThumbnailOverlayProps): JSX.Element;
3112
- displayName: string;
3113
- };
3114
-
3115
- 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, ThumbnailOverlay, type ThumbnailOverlayProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
3034
+ 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, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.6.38-beta.e013f95e.b698402
3
+ * @license @wistia/ui v0.6.39
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -12049,256 +12049,6 @@ var WistiaLogo = ({
12049
12049
  return href !== void 0 ? /* @__PURE__ */ jsx266("a", { href, children: Logo }) : Logo;
12050
12050
  };
12051
12051
  WistiaLogo.displayName = "WistiaLogo";
12052
-
12053
- // src/components/Thumbnail/Thumbnail.tsx
12054
- import { forwardRef as forwardRef29 } from "react";
12055
- import styled71 from "styled-components";
12056
- import { isNotNil as isNotNil28 } from "@wistia/type-guards";
12057
-
12058
- // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12059
- import { isNotNil as isNotNil27 } from "@wistia/type-guards";
12060
- import { css as css37 } from "styled-components";
12061
- var gradients = {
12062
- defaultDarkOne: css37`
12063
- background-color: #222d66;
12064
- background-image:
12065
- radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
12066
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12067
- radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12068
- radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12069
- `,
12070
- defaultDarkTwo: css37`
12071
- background-color: #222d66;
12072
- background-image:
12073
- radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
12074
- radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%),
12075
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12076
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12077
- `,
12078
- defaultLightOne: css37`
12079
- background-color: #ccd5ff;
12080
- background-image:
12081
- radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
12082
- radial-gradient(farthest-corner at top left, #ccd5ff, transparent 65%),
12083
- radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12084
- radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12085
- `,
12086
- defaultLightTwo: css37`
12087
- background-color: #ccd5ff;
12088
- background-image:
12089
- radial-gradient(ellipse at top, #ccd5ff, transparent),
12090
- radial-gradient(ellipse at bottom, #6b84ff, transparent);
12091
- `,
12092
- defaultMidOne: css37`
12093
- background-color: #6b84ff;
12094
- background-image:
12095
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
12096
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12097
- radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12098
- radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12099
- `,
12100
- defaultMidTwo: css37`
12101
- background-color: #6b84ff;
12102
- background-image:
12103
- radial-gradient(ellipse at top, #2949e5, transparent),
12104
- radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12105
- `,
12106
- green: css37`
12107
- background-color: #fafffa;
12108
- background-image:
12109
- radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
12110
- radial-gradient(farthest-corner at top right, #268713, transparent 50%),
12111
- radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12112
- radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12113
- `,
12114
- greenWithPop: css37`
12115
- background-color: #fafffa;
12116
- background-image:
12117
- radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
12118
- radial-gradient(farthest-corner at top right, #2949e5, transparent 50%),
12119
- radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12120
- radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12121
- `,
12122
- pink: css37`
12123
- background-color: #fffff0;
12124
- background-image:
12125
- radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
12126
- radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
12127
- radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12128
- radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12129
- `,
12130
- pinkWithPop: css37`
12131
- background-color: #fffff0;
12132
- background-image:
12133
- radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
12134
- radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12135
- radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12136
- radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12137
- `,
12138
- playfulGradientOne: css37`
12139
- background-color: #f7f8ff;
12140
- background-image:
12141
- radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
12142
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12143
- radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12144
- radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12145
- `,
12146
- playfulGradientTwo: css37`
12147
- background-color: #f7f8ff;
12148
- background-image:
12149
- radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
12150
- radial-gradient(farthest-corner at bottom right, #eff18d, transparent 50%),
12151
- radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12152
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12153
- `,
12154
- purple: css37`
12155
- background-color: #f2caff;
12156
- background-image:
12157
- radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12158
- radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12159
- `,
12160
- purpleWithPop: css37`
12161
- background-color: #f2caff;
12162
- background-image:
12163
- radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
12164
- radial-gradient(farthest-corner at top left, #d65cff, transparent 65%),
12165
- radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12166
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12167
- `,
12168
- yellow: css37`
12169
- background-color: #fffff0;
12170
- background-image:
12171
- radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
12172
- radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
12173
- radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12174
- radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12175
- `,
12176
- yellowWithPop: css37`
12177
- background-color: #fffff0;
12178
- background-image:
12179
- radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
12180
- radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
12181
- radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12182
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 55%);
12183
- `
12184
- };
12185
- var gradientMap = Object.keys(gradients);
12186
- var getBackgroundGradient = (gradientName = void 0) => {
12187
- return isNotNil27(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12188
- };
12189
-
12190
- // src/components/Thumbnail/Thumbnail.tsx
12191
- import { jsx as jsx267, jsxs as jsxs44 } from "react/jsx-runtime";
12192
- var WideThumbnailImage = styled71.img`
12193
- height: 100%;
12194
- object-fit: cover;
12195
- width: 100%;
12196
- `;
12197
- var SquareThumbnailImage = styled71.img`
12198
- backdrop-filter: blur(8px);
12199
- object-fit: contain;
12200
- width: 100%;
12201
- `;
12202
- var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12203
- if (thumbnailImageType === "wide") {
12204
- return /* @__PURE__ */ jsx267(
12205
- WideThumbnailImage,
12206
- {
12207
- alt: "",
12208
- src: thumbnailUrl
12209
- }
12210
- );
12211
- }
12212
- if (thumbnailImageType === "square") {
12213
- return /* @__PURE__ */ jsx267(
12214
- SquareThumbnailImage,
12215
- {
12216
- alt: "",
12217
- src: thumbnailUrl
12218
- }
12219
- );
12220
- }
12221
- return null;
12222
- };
12223
- var StyledThumbnail = styled71.div`
12224
- ${({ $gradientBackground }) => getBackgroundGradient($gradientBackground)};
12225
- aspect-ratio: 16 / 9;
12226
- background: ${({ $backgroundUrl }) => isNotNil28($backgroundUrl) ? `url('${$backgroundUrl}') center / cover` : void 0};
12227
- border-radius: 4px;
12228
- display: flex;
12229
- overflow: hidden;
12230
- position: relative;
12231
- width: ${({ $width }) => $width};
12232
- `;
12233
- var Thumbnail = forwardRef29(
12234
- ({
12235
- gradientBackground = "defaultMidOne",
12236
- thumbnailImageType = "square",
12237
- thumbnailUrl,
12238
- width = "auto",
12239
- children,
12240
- ...otherProps
12241
- }, ref) => {
12242
- const backgroundUrl = thumbnailImageType === "square" && isNotNil28(thumbnailUrl) ? thumbnailUrl : void 0;
12243
- return /* @__PURE__ */ jsxs44(
12244
- StyledThumbnail,
12245
- {
12246
- ref,
12247
- $backgroundUrl: backgroundUrl,
12248
- $gradientBackground: gradientBackground,
12249
- $width: width,
12250
- ...otherProps,
12251
- children: [
12252
- isNotNil28(children) && children,
12253
- isNotNil28(thumbnailUrl) && /* @__PURE__ */ jsx267(
12254
- ThumbnailImage,
12255
- {
12256
- thumbnailImageType,
12257
- thumbnailUrl
12258
- }
12259
- )
12260
- ]
12261
- }
12262
- );
12263
- }
12264
- );
12265
- Thumbnail.displayName = "Thumbnail";
12266
-
12267
- // src/components/Thumbnail/ThumbnailOverlay.tsx
12268
- import styled72 from "styled-components";
12269
- import { isNotNil as isNotNil29 } from "@wistia/type-guards";
12270
- import { jsx as jsx268, jsxs as jsxs45 } from "react/jsx-runtime";
12271
- var StyledThumbnailOverlay = styled72.div`
12272
- align-items: center;
12273
- background-color: rgb(0 0 0 / 50%);
12274
- border-radius: var(--wui-border-radius-01);
12275
- bottom: var(--wui-space-01);
12276
- color: var(--wui-color-text-on-fill);
12277
- display: flex;
12278
- font-size: var(--wui-typography-body-4-size);
12279
- font-weight: var(--wui-typography-weight-body-bold);
12280
- gap: var(--wui-space-01);
12281
- padding: 0 var(--wui-space-01);
12282
- position: absolute;
12283
- right: var(--wui-space-01);
12284
- z-index: 1;
12285
-
12286
- svg {
12287
- height: 12px;
12288
- width: 12px;
12289
-
12290
- path {
12291
- color: var(--wui-color-icon-on-fill);
12292
- }
12293
- }
12294
- `;
12295
- var ThumbnailOverlay = ({ icon, label }) => {
12296
- return /* @__PURE__ */ jsxs45(StyledThumbnailOverlay, { children: [
12297
- isNotNil29(icon) && icon,
12298
- /* @__PURE__ */ jsx268("span", { children: label })
12299
- ] });
12300
- };
12301
- ThumbnailOverlay.displayName = "ThumbnailOverlay";
12302
12052
  export {
12303
12053
  ActionButton,
12304
12054
  Avatar,
@@ -12371,8 +12121,6 @@ export {
12371
12121
  Tabs,
12372
12122
  Tag,
12373
12123
  Text,
12374
- Thumbnail,
12375
- ThumbnailOverlay,
12376
12124
  Tooltip,
12377
12125
  UIProvider,
12378
12126
  WistiaLogo,