@wistia/ui 0.20.17 → 0.20.18-beta.9286947b.aff5c79
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 +65 -30
- package/dist/index.js +1174 -1043
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -665,19 +665,7 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
665
665
|
* Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
666
666
|
*/
|
|
667
667
|
icon?: JSX.Element;
|
|
668
|
-
/**
|
|
669
|
-
* Controls the visual prominence of the banner
|
|
670
|
-
*/
|
|
671
|
-
prominence?: 'primary' | 'secondary';
|
|
672
668
|
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
669
|
/**
|
|
682
670
|
* Primary call-to-action element (typically a [Button]() of the `solid` variant)
|
|
683
671
|
*/
|
|
@@ -695,26 +683,10 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
695
683
|
* The `Banner` component is for displaying contextual information to the user such as alerts or feature announcements.
|
|
696
684
|
*/
|
|
697
685
|
declare const Banner: {
|
|
698
|
-
({ bodyText, colorScheme, headingText, icon,
|
|
686
|
+
({ bodyText, colorScheme, headingText, icon, onClose, primaryAction, secondaryAction, ...props }: BannerProps): JSX.Element;
|
|
699
687
|
displayName: string;
|
|
700
688
|
};
|
|
701
689
|
|
|
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
690
|
type UnknownRecord = Record<string, unknown>;
|
|
719
691
|
type PropsOf<Component extends ElementType> = ComponentPropsWithoutRef<Component>;
|
|
720
692
|
type ExtendedProps<Props = UnknownRecord, OverrideProps = UnknownRecord> = Omit<Props, keyof OverrideProps> & OverrideProps;
|
|
@@ -2381,6 +2353,69 @@ declare const Ellipsis: {
|
|
|
2381
2353
|
displayName: string;
|
|
2382
2354
|
};
|
|
2383
2355
|
|
|
2356
|
+
type FeatureCardProps = ComponentPropsWithoutRef<'div'> & {
|
|
2357
|
+
/**
|
|
2358
|
+
* The main text content displayed in the feature card
|
|
2359
|
+
*/
|
|
2360
|
+
bodyText: ReactNode;
|
|
2361
|
+
/**
|
|
2362
|
+
* Optional heading text displayed at the top of the feature card content
|
|
2363
|
+
*/
|
|
2364
|
+
headingText?: string;
|
|
2365
|
+
/**
|
|
2366
|
+
* Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
2367
|
+
*/
|
|
2368
|
+
icon?: JSX.Element;
|
|
2369
|
+
/**
|
|
2370
|
+
* Controls the visual prominence of the feature card
|
|
2371
|
+
*/
|
|
2372
|
+
prominence?: 'primary' | 'secondary';
|
|
2373
|
+
colorScheme?: ColorSchemeTypes;
|
|
2374
|
+
/**
|
|
2375
|
+
* Optional image element to display in the feature card
|
|
2376
|
+
*/
|
|
2377
|
+
image?: JSX.Element | undefined;
|
|
2378
|
+
/**
|
|
2379
|
+
* Controls the layout direction. If set to 'auto', the feature card will switch between horizontal and vertical based on the container width.
|
|
2380
|
+
*/
|
|
2381
|
+
orientation?: 'auto' | 'horizontal' | 'vertical';
|
|
2382
|
+
/**
|
|
2383
|
+
* Primary call-to-action element (typically a [Button]() of the `solid` variant)
|
|
2384
|
+
*/
|
|
2385
|
+
primaryAction?: ReactNode;
|
|
2386
|
+
/**
|
|
2387
|
+
* Secondary call-to-action element (typically a [Button]() of the `outline` variant)
|
|
2388
|
+
*/
|
|
2389
|
+
secondaryAction?: ReactNode;
|
|
2390
|
+
/**
|
|
2391
|
+
* Optional callback function when the close button is clicked. If not provided, the close button will not be displayed.
|
|
2392
|
+
*/
|
|
2393
|
+
onClose?: () => void;
|
|
2394
|
+
};
|
|
2395
|
+
/**
|
|
2396
|
+
* The `FeatureCard` component is for displaying contextual information to the user such as alerts or feature announcements.
|
|
2397
|
+
*/
|
|
2398
|
+
declare const FeatureCard: {
|
|
2399
|
+
({ bodyText, colorScheme, headingText, icon, image, onClose, orientation, primaryAction, prominence, secondaryAction, ...props }: FeatureCardProps): JSX.Element;
|
|
2400
|
+
displayName: string;
|
|
2401
|
+
};
|
|
2402
|
+
|
|
2403
|
+
type FeatureCardImageProps = ComponentPropsWithoutRef<'div'> & {
|
|
2404
|
+
/**
|
|
2405
|
+
* The URL of the image to display in the feature card
|
|
2406
|
+
*/
|
|
2407
|
+
src: string;
|
|
2408
|
+
/**
|
|
2409
|
+
* Alternative text description of the image for accessibility
|
|
2410
|
+
*/
|
|
2411
|
+
alt?: string;
|
|
2412
|
+
/**
|
|
2413
|
+
* Position of the image within the feature card layout. Only applies in horizontal orientation.
|
|
2414
|
+
*/
|
|
2415
|
+
alignment?: 'left' | 'right';
|
|
2416
|
+
};
|
|
2417
|
+
declare const FeatureCardImage: ({ alignment, alt, src, ...props }: FeatureCardImageProps) => react_jsx_runtime.JSX.Element;
|
|
2418
|
+
|
|
2384
2419
|
type ActionCallback<T> = (data: T, nextData: T) => Promise<T> | T;
|
|
2385
2420
|
type Action = (data: FormData | null) => Promise<void>;
|
|
2386
2421
|
type FormActionState<T> = [{
|
|
@@ -4515,4 +4550,4 @@ declare const WistiaLogo: {
|
|
|
4515
4550
|
displayName: string;
|
|
4516
4551
|
};
|
|
4517
4552
|
|
|
4518
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner,
|
|
4553
|
+
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, 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 };
|