@wistia/ui 0.21.1-beta.1269b8f2.dbd75dd → 0.21.1-beta.166dc17a.14f0804

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
@@ -3650,6 +3650,161 @@ declare const Radio: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTM
3650
3650
  hideLabel?: boolean;
3651
3651
  } & react.RefAttributes<HTMLInputElement>>;
3652
3652
 
3653
+ type CheckboxCardDefaultLayoutProps = {
3654
+ /**
3655
+ * The icon to display
3656
+ */
3657
+ icon?: JSX.Element | undefined;
3658
+ /**
3659
+ * The main label text for the card.
3660
+ *
3661
+ * *Note: `label` only allows for a string as any interactive elements inside of a CheckboxCard would be an accessibility violation.*
3662
+ */
3663
+ label?: string | undefined;
3664
+ /**
3665
+ * The description text for the card
3666
+ *
3667
+ * *Note: `description` only allows for a string as any interactive elements inside of a CheckboxCard would be an accessibility violation.*
3668
+ */
3669
+ description?: string | undefined;
3670
+ /**
3671
+ * Whether to show the indicator
3672
+ */
3673
+ showIndicator?: boolean | undefined;
3674
+ /**
3675
+ * Whether to show the sparkle icon and gated styles
3676
+ */
3677
+ isGated?: boolean | undefined;
3678
+ };
3679
+
3680
+ type BaseCheckboxCardProps = Omit<ComponentPropsWithoutRef<'input'>, 'checked' | 'disabled' | 'id' | 'name' | 'onChange' | 'value'> & {
3681
+ /**
3682
+ * Indicates the checked state of the checkbox
3683
+ */
3684
+ checked?: boolean;
3685
+ /**
3686
+ * Disables the card
3687
+ */
3688
+ disabled?: boolean;
3689
+ /**
3690
+ * Provides an ID for the input
3691
+ */
3692
+ id?: string;
3693
+ /**
3694
+ * The name attribute of the input
3695
+ */
3696
+ name?: string;
3697
+ /**
3698
+ * Callback function invoked when the value changes
3699
+ */
3700
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
3701
+ /**
3702
+ * The value attribute of the input
3703
+ */
3704
+ value: string;
3705
+ };
3706
+ type CheckboxCardWithChildren = BaseCheckboxCardProps & {
3707
+ /**
3708
+ * Custom content to display inside the card.
3709
+ */
3710
+ children: ReactNode;
3711
+ icon?: never;
3712
+ label?: never;
3713
+ description?: never;
3714
+ showIndicator?: never;
3715
+ isGated?: never;
3716
+ };
3717
+ type CheckboxCardWithDefaultLayout = BaseCheckboxCardProps & CheckboxCardDefaultLayoutProps & {
3718
+ children?: never;
3719
+ };
3720
+ type CheckboxCardProps = CheckboxCardWithChildren | CheckboxCardWithDefaultLayout;
3721
+ declare const CheckboxCard: react.ForwardRefExoticComponent<CheckboxCardProps & react.RefAttributes<HTMLInputElement>>;
3722
+
3723
+ type CheckboxCardImageProps = Omit<ComponentPropsWithoutRef<'input'>, 'onChange'> & {
3724
+ /**
3725
+ * Indicates the checked state of the checkbox
3726
+ */
3727
+ checked?: boolean;
3728
+ /**
3729
+ * Disables the card
3730
+ */
3731
+ disabled?: boolean;
3732
+ /**
3733
+ * Provides an ID for the input
3734
+ */
3735
+ id?: string;
3736
+ /**
3737
+ * The name attribute of the input
3738
+ */
3739
+ name?: string;
3740
+ /**
3741
+ * Callback function invoked when the value changes
3742
+ */
3743
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
3744
+ /**
3745
+ * The value attribute of the input
3746
+ */
3747
+ value: string;
3748
+ /**
3749
+ * The label text for the checkbox card (used as the image alt text)
3750
+ */
3751
+ label: string;
3752
+ /**
3753
+ * The source URL for the image to display
3754
+ */
3755
+ imageSrc: string;
3756
+ /**
3757
+ * The aspect ratio of the card
3758
+ */
3759
+ aspectRatio?: string;
3760
+ /**
3761
+ * The padding of the card
3762
+ */
3763
+ padding?: Spacings;
3764
+ };
3765
+ declare const CheckboxCardImage: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange"> & {
3766
+ /**
3767
+ * Indicates the checked state of the checkbox
3768
+ */
3769
+ checked?: boolean;
3770
+ /**
3771
+ * Disables the card
3772
+ */
3773
+ disabled?: boolean;
3774
+ /**
3775
+ * Provides an ID for the input
3776
+ */
3777
+ id?: string;
3778
+ /**
3779
+ * The name attribute of the input
3780
+ */
3781
+ name?: string;
3782
+ /**
3783
+ * Callback function invoked when the value changes
3784
+ */
3785
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
3786
+ /**
3787
+ * The value attribute of the input
3788
+ */
3789
+ value: string;
3790
+ /**
3791
+ * The label text for the checkbox card (used as the image alt text)
3792
+ */
3793
+ label: string;
3794
+ /**
3795
+ * The source URL for the image to display
3796
+ */
3797
+ imageSrc: string;
3798
+ /**
3799
+ * The aspect ratio of the card
3800
+ */
3801
+ aspectRatio?: string;
3802
+ /**
3803
+ * The padding of the card
3804
+ */
3805
+ padding?: Spacings;
3806
+ } & react.RefAttributes<HTMLInputElement>>;
3807
+
3653
3808
  type RadioCardDefaultLayoutProps = {
3654
3809
  /**
3655
3810
  * The icon to display
@@ -4642,4 +4797,4 @@ declare const WistiaLogo: {
4642
4797
  displayName: string;
4643
4798
  };
4644
4799
 
4645
- 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, PreviewCard, type PreviewCardProps, 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 };
4800
+ 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, CheckboxCard, CheckboxCardImage, type CheckboxCardImageProps, type CheckboxCardProps, 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, PreviewCard, type PreviewCardProps, 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 };