@wistia/ui 0.20.22 → 0.21.0-beta.0a3f809d.ebf7b0d
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 +41 -49
- package/dist/index.js +903 -1036
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -613,11 +613,11 @@ declare const Avatar: {
|
|
|
613
613
|
type BadgeVariants = 'default' | 'outline';
|
|
614
614
|
type BadgeProps = ComponentPropsWithoutRef<'div'> & {
|
|
615
615
|
/**
|
|
616
|
-
* Sets the [color scheme](
|
|
616
|
+
* Sets the [color scheme](/docs/color-schemes)
|
|
617
617
|
*/
|
|
618
618
|
colorScheme?: ColorSchemeTypes;
|
|
619
619
|
/**
|
|
620
|
-
* Optional `Icon` component to use. Must be an instance of [Icon](
|
|
620
|
+
* Optional `Icon` component to use. Must be an instance of [Icon](/docs/components/Icon)
|
|
621
621
|
*/
|
|
622
622
|
icon?: JSX.Element | undefined;
|
|
623
623
|
/**
|
|
@@ -634,11 +634,11 @@ type BadgeProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
634
634
|
*/
|
|
635
635
|
declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
636
636
|
/**
|
|
637
|
-
* Sets the [color scheme](
|
|
637
|
+
* Sets the [color scheme](/docs/color-schemes)
|
|
638
638
|
*/
|
|
639
639
|
colorScheme?: ColorSchemeTypes;
|
|
640
640
|
/**
|
|
641
|
-
* Optional `Icon` component to use. Must be an instance of [Icon](
|
|
641
|
+
* Optional `Icon` component to use. Must be an instance of [Icon](/docs/components/Icon)
|
|
642
642
|
*/
|
|
643
643
|
icon?: JSX.Element | undefined;
|
|
644
644
|
/**
|
|
@@ -664,19 +664,7 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
664
664
|
* Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
665
665
|
*/
|
|
666
666
|
icon?: JSX.Element;
|
|
667
|
-
/**
|
|
668
|
-
* Controls the visual prominence of the banner
|
|
669
|
-
*/
|
|
670
|
-
prominence?: 'primary' | 'secondary';
|
|
671
667
|
colorScheme?: ColorSchemeTypes;
|
|
672
|
-
/**
|
|
673
|
-
* Optional image element to display in the banner
|
|
674
|
-
*/
|
|
675
|
-
image?: JSX.Element | undefined;
|
|
676
|
-
/**
|
|
677
|
-
* Controls the layout direction. If set to 'auto', the banner will switch between horizontal and vertical based on the container width.
|
|
678
|
-
*/
|
|
679
|
-
orientation?: 'auto' | 'horizontal' | 'vertical';
|
|
680
668
|
/**
|
|
681
669
|
* Primary call-to-action element (typically a [Button]() of the `solid` variant)
|
|
682
670
|
*/
|
|
@@ -694,26 +682,10 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
694
682
|
* The `Banner` component is for displaying contextual information to the user such as alerts or feature announcements.
|
|
695
683
|
*/
|
|
696
684
|
declare const Banner: {
|
|
697
|
-
({ bodyText, colorScheme, headingText, icon,
|
|
685
|
+
({ bodyText, colorScheme, headingText, icon, onClose, primaryAction, secondaryAction, ...props }: BannerProps): JSX.Element;
|
|
698
686
|
displayName: string;
|
|
699
687
|
};
|
|
700
688
|
|
|
701
|
-
type BannerImageProps = ComponentPropsWithoutRef<'div'> & {
|
|
702
|
-
/**
|
|
703
|
-
* The URL of the image to display in the banner
|
|
704
|
-
*/
|
|
705
|
-
src: string;
|
|
706
|
-
/**
|
|
707
|
-
* Alternative text description of the image for accessibility
|
|
708
|
-
*/
|
|
709
|
-
alt?: string;
|
|
710
|
-
/**
|
|
711
|
-
* Position of the image within the banner layout. Only applies in horizontal orientation.
|
|
712
|
-
*/
|
|
713
|
-
alignment?: 'left' | 'right';
|
|
714
|
-
};
|
|
715
|
-
declare const BannerImage: ({ alignment, alt, src, ...props }: BannerImageProps) => react_jsx_runtime.JSX.Element;
|
|
716
|
-
|
|
717
689
|
type UnknownRecord = Record<string, unknown>;
|
|
718
690
|
type PropsOf<Component extends ElementType> = ComponentPropsWithoutRef<Component>;
|
|
719
691
|
type ExtendedProps<Props = UnknownRecord, OverrideProps = UnknownRecord> = Omit<Props, keyof OverrideProps> & OverrideProps;
|
|
@@ -777,7 +749,8 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
|
|
|
777
749
|
/**
|
|
778
750
|
* Specifies how the browser distributes space between and around
|
|
779
751
|
* items along the cross-axis of their container; has no effect on
|
|
780
|
-
* single line flexible boxes. Can be a [responsive prop](/docs/
|
|
752
|
+
* single line flexible boxes. Can be a [responsive prop](/docs/responsive-props).
|
|
753
|
+
* @type ResponsiveObject<"center" | "flex-end" | "flex-start" | "space-around" | "space-between" | "stretch">
|
|
781
754
|
*/
|
|
782
755
|
alignContent?: AlignContentType | ResponsiveObject<AlignContentType>;
|
|
783
756
|
/**
|
|
@@ -786,23 +759,28 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
|
|
|
786
759
|
* to the alignContent prop is that alignItems specifies the
|
|
787
760
|
* alignment of the items within the current container's line,
|
|
788
761
|
* whereas alignContent specifies the alignment of the lines themselves.
|
|
789
|
-
* Can be a [responsive prop](/docs/
|
|
762
|
+
* Can be a [responsive prop](/docs/responsive-props).
|
|
763
|
+
* @type ResponsiveObject<"baseline" | "center" | "flex-end" | "flex-start" | "stretch">
|
|
790
764
|
*/
|
|
791
765
|
alignItems?: AlignItemsType | ResponsiveObject<AlignItemsType>;
|
|
792
766
|
/**
|
|
793
767
|
* Specifies how the browser aligns items of the current line, overriding the
|
|
794
768
|
* alignItems value of parent; if any of the item's cross-axis margin is set to auto,
|
|
795
|
-
* then alignSelf is ignored. Can be a [responsive prop](/docs/
|
|
769
|
+
* then alignSelf is ignored. Can be a [responsive prop](/docs/responsive-props).
|
|
796
770
|
*
|
|
797
771
|
* *Note: only works for nested `<Box />`*
|
|
772
|
+
*
|
|
773
|
+
* @type ResponsiveObject<'auto' | 'baseline' | 'center' | 'flex-end' | 'flex-start' | 'stretch'>
|
|
798
774
|
*/
|
|
799
775
|
alignSelf?: AlignSelfType | ResponsiveObject<AlignSelfType>;
|
|
800
776
|
/**
|
|
801
|
-
* Specifies the initial main size of an item. Can be a [responsive prop](/docs/
|
|
777
|
+
* Specifies the initial main size of an item. Can be a [responsive prop](/docs/responsive-props).
|
|
802
778
|
*
|
|
803
779
|
* *Note: Cannot be used with `flexMode` prop.*
|
|
804
780
|
*
|
|
805
781
|
* *Note: only works for nested `<Box />`*
|
|
782
|
+
* @type ResponsiveObject<'string'>
|
|
783
|
+
|
|
806
784
|
*/
|
|
807
785
|
basis?: ResponsiveObject<string> | string;
|
|
808
786
|
/**
|
|
@@ -810,17 +788,19 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
|
|
|
810
788
|
*/
|
|
811
789
|
children?: ReactNode;
|
|
812
790
|
/**
|
|
813
|
-
* Specifies the main axis of the container. Can be a [responsive prop](/docs/
|
|
791
|
+
* Specifies the main axis of the container. Can be a [responsive prop](/docs/responsive-props).
|
|
792
|
+
* @type ResponsiveObject<'column-reverse' | 'column' | 'row-reverse' | 'row'>
|
|
814
793
|
*/
|
|
815
794
|
direction?: DirectionType | ResponsiveObject<DirectionType>;
|
|
816
795
|
/**
|
|
817
796
|
* Specifies whether the width and/or height should fill the container.
|
|
818
|
-
* Can be a [responsive prop](/docs/
|
|
797
|
+
* Can be a [responsive prop](/docs/responsive-props).
|
|
819
798
|
*
|
|
820
799
|
* *Note: Cannot be used with height/width props when setting the corresponding dimension.*
|
|
821
800
|
*
|
|
822
801
|
* For example, `fill="vertical"` or `fill={true}` cannot be used with the `height` prop,
|
|
823
802
|
* and `fill="horizontal"` or `fill={true}` cannot be used with the `width` prop.
|
|
803
|
+
* @type ResponsiveObject<boolean | 'horizontal' | 'vertical'>
|
|
824
804
|
*/
|
|
825
805
|
fill?: FillType | ResponsiveObject<FillType>;
|
|
826
806
|
/**
|
|
@@ -830,49 +810,58 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
|
|
|
830
810
|
*
|
|
831
811
|
* For example, `fillViewport="vertical"` or `fillViewport={true}` cannot be used with the `height` prop,
|
|
832
812
|
* and `fillViewport="horizontal"` or `fillViewport={true}` cannot be used with the `width` prop.
|
|
813
|
+
* @type boolean | 'horizontal' | 'vertical'
|
|
833
814
|
*/
|
|
834
815
|
fillViewport?: FillType;
|
|
835
816
|
/**
|
|
836
|
-
* Predefined `flex` behavior patterns. Can be a [responsive prop](/docs/
|
|
817
|
+
* Predefined `flex` behavior patterns. Can be a [responsive prop](/docs/responsive-props).
|
|
837
818
|
*
|
|
838
819
|
* - `grow`: fills available space (`flex: 1 0 0`)
|
|
839
820
|
* - `initial`: default behavior (`flex: 0 1 auto`)
|
|
840
821
|
* - `equal`: equal space distribution (`flex: 1`)
|
|
841
822
|
* - `rigid`: fixed size (`flex: 0 0 auto`)
|
|
842
823
|
* - `fluid`: responsive (`flex: 1 1 auto`)
|
|
824
|
+
*
|
|
825
|
+
* @type ResponsiveObject<'equal' | 'fluid' | 'grow' | 'initial' | 'rigid'>
|
|
843
826
|
*/
|
|
844
827
|
flexMode?: FlexModeType | ResponsiveObject<FlexModeType>;
|
|
845
828
|
/**
|
|
846
829
|
* Specifies the gaps (gutters) between rows and columns.
|
|
847
|
-
* Can be a [responsive prop](/docs/
|
|
830
|
+
* Can be a [responsive prop](/docs/responsive-props).
|
|
848
831
|
*
|
|
849
832
|
* Can be either a single spacing value that applies to both row and column gaps,
|
|
850
833
|
* or an object specifying different values for row and column gaps.
|
|
834
|
+
*
|
|
835
|
+
* @type ResponsiveObject<Spacings | { row: Spacings; column: Spacings }>
|
|
851
836
|
*/
|
|
852
837
|
gap?: Gap$1 | ResponsiveGap$1 | Spacings;
|
|
853
838
|
/**
|
|
854
839
|
* Specifies what amount of space inside the flex container the item should take up.
|
|
855
|
-
* Can be a [responsive prop](/docs/
|
|
840
|
+
* Can be a [responsive prop](/docs/responsive-props).
|
|
856
841
|
*
|
|
857
842
|
* *Note: Cannot be used with `flexMode` prop.*
|
|
858
843
|
*
|
|
859
844
|
* *Note: only works for nested `<Box />`*
|
|
845
|
+
* @type ResponsiveObject<number | string>
|
|
860
846
|
*/
|
|
861
847
|
grow?: ResponsiveObject<number | string> | number | string;
|
|
862
848
|
/**
|
|
863
|
-
* Specifies the height of the box. Can be a [responsive prop](/docs/
|
|
849
|
+
* Specifies the height of the box. Can be a [responsive prop](/docs/responsive-props).
|
|
864
850
|
*
|
|
865
851
|
* *Note: Cannot be used with fill="vertical" or fillViewport="vertical"*
|
|
852
|
+
* @type ResponsiveObject<string>
|
|
866
853
|
*/
|
|
867
854
|
height?: ResponsiveObject<string> | string;
|
|
868
855
|
/**
|
|
869
856
|
* Make Layout behave like an inline element but still lay out its content according to flexbox model.
|
|
870
|
-
* Can be a [responsive prop](/docs/
|
|
857
|
+
* Can be a [responsive prop](/docs/responsive-props).
|
|
858
|
+
* @type ResponsiveObject<boolean>
|
|
871
859
|
*/
|
|
872
860
|
inline?: ResponsiveObject<boolean> | boolean;
|
|
873
861
|
/**
|
|
874
862
|
* Specifies how the browser distributes space between and around
|
|
875
|
-
* items along the main axis of their container. Can be a [responsive prop](/docs/
|
|
863
|
+
* items along the main axis of their container. Can be a [responsive prop](/docs/responsive-props).
|
|
864
|
+
* @type ResponsiveObject<'center' | 'flex-end' | 'flex-start' | 'space-around' | 'space-between' | 'space-evenly'>
|
|
876
865
|
*/
|
|
877
866
|
justifyContent?: JustifyContentType | ResponsiveObject<JustifyContentType>;
|
|
878
867
|
/**
|
|
@@ -886,22 +875,25 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
|
|
|
886
875
|
renderAs?: ElementType;
|
|
887
876
|
/**
|
|
888
877
|
* Specifies how items will shrink inside the container when the default size of
|
|
889
|
-
* items is larger than their container. Can be a [responsive prop](/docs/
|
|
878
|
+
* items is larger than their container. Can be a [responsive prop](/docs/responsive-props).
|
|
890
879
|
*
|
|
891
880
|
* *Note: Cannot be used with `flexMode` prop.*
|
|
892
881
|
*
|
|
893
882
|
* *Note: only works for nested `<Box />`*
|
|
883
|
+
* @type ResponsiveObject<number>
|
|
894
884
|
*/
|
|
895
885
|
shrink?: ResponsiveObject<number> | number;
|
|
896
886
|
/**
|
|
897
887
|
* Specifies whether items are forced into a single line or can be wrapped onto multiple lines.
|
|
898
|
-
* Can be a [responsive prop](/docs/
|
|
888
|
+
* Can be a [responsive prop](/docs/responsive-props).
|
|
889
|
+
* @type ResponsiveObject<boolean>
|
|
899
890
|
*/
|
|
900
891
|
wrapItems?: ResponsiveObject<boolean> | boolean;
|
|
901
892
|
/**
|
|
902
|
-
* Specifies the width of the box. Can be a [responsive prop](/docs/
|
|
893
|
+
* Specifies the width of the box. Can be a [responsive prop](/docs/responsive-props).
|
|
903
894
|
*
|
|
904
895
|
* *Note: Cannot be used with fill="horizontal" or fillViewport="horizontal"*
|
|
896
|
+
* @type ResponsiveObject<string>
|
|
905
897
|
*/
|
|
906
898
|
width?: ResponsiveObject<string> | string;
|
|
907
899
|
};
|
|
@@ -4595,4 +4587,4 @@ declare const WistiaLogo: {
|
|
|
4595
4587
|
displayName: string;
|
|
4596
4588
|
};
|
|
4597
4589
|
|
|
4598
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner,
|
|
4590
|
+
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 };
|